aboutsummaryrefslogtreecommitdiff
path: root/src/models/properties.rs
diff options
context:
space:
mode:
authorGravatar ahmetrehaseker <ahmetrehaseker@gmail.com> 2023-01-02 19:19:41 +0300
committerGravatar GitHub <noreply@github.com> 2023-01-02 08:19:41 -0800
commit43fd57ab2f7fd0e478001d97be5e66156feaa4cc (patch)
tree0632240109ec51b32e9480aceb0efb8aac504647 /src/models/properties.rs
parent1e4f1d49919bf4dd0cfe1af1fcd95d1d90e4b7ff (diff)
downloadnotion-43fd57ab2f7fd0e478001d97be5e66156feaa4cc.tar.gz
notion-43fd57ab2f7fd0e478001d97be5e66156feaa4cc.tar.zst
notion-43fd57ab2f7fd0e478001d97be5e66156feaa4cc.zip
Add create page functionality (#44)
* Change text to rich_text * Add craete page functionality Co-authored-by: Jake Swenson <jakeswenson@users.noreply.github.com>
Diffstat (limited to 'src/models/properties.rs')
-rw-r--r--src/models/properties.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/models/properties.rs b/src/models/properties.rs
index 3fa5935..467f750 100644
--- a/src/models/properties.rs
+++ b/src/models/properties.rs
@@ -190,8 +190,10 @@ pub enum PropertyConfiguration {
#[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)]
pub struct SelectedValue {
- pub id: SelectOptionId,
- pub name: String,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub id: Option<SelectOptionId>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub name: Option<String>,
pub color: Color,
}