Removed skip serialization

This commit is contained in:
Franklin 2023-02-21 16:21:56 -04:00
parent 5dc72469a7
commit 7d92700bd3

View File

@ -6,7 +6,7 @@ use serde_json::Value;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
pub struct ClientMessage {
pub head: String,
#[serde(skip_serializing_if = "Value::is_null", default = "null_value")]
#[serde(default = "null_value")]
pub body: Value,
}