aboutsummaryrefslogtreecommitdiff
path: root/src/models/text.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/models/text.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/models/text.rs b/src/models/text.rs
index 4188dbf..841e7d7 100644
--- a/src/models/text.rs
+++ b/src/models/text.rs
@@ -44,7 +44,9 @@ pub struct Annotations {
#[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)]
pub struct RichTextCommon {
pub plain_text: String,
+ #[serde(skip_serializing_if = "Option::is_none")]
pub href: Option<String>,
+ #[serde(skip_serializing_if = "Option::is_none")]
pub annotations: Option<Annotations>,
}