diff --git a/src/main.rs b/src/main.rs index f607aad..ae78bc4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -144,6 +144,7 @@ struct GetMessagesParams { #[derive(Serialize)] struct GetMessagesResp { + #[serde(skip_serializing_if = "Option::is_none")] cursor: Option, messages: Vec, } @@ -175,6 +176,7 @@ struct ListConvosParams { #[derive(Serialize)] struct ListConvosResp { + #[serde(skip_serializing_if = "Option::is_none")] cursor: Option, convos: Vec, } @@ -225,6 +227,7 @@ struct GetLogParams { #[derive(Serialize)] struct GetLogResp { + #[serde(skip_serializing_if = "Option::is_none")] cursor: Option, logs: Vec, }