aboutsummaryrefslogtreecommitdiff
path: root/src/models/properties.rs
diff options
context:
space:
mode:
authorGravatar Jake Swenson <jake@jakeswenson.com> 2021-09-22 14:13:05 -0700
committerGravatar Jake Swenson <jake@jakeswenson.com> 2021-09-22 14:13:05 -0700
commitf34ba4d79682665603d5ce3192b5422aab3f6800 (patch)
treed2bded634af25a2bfe7e5ab817b14a5759e0f5ef /src/models/properties.rs
parent50faf778671358d70fa967735a062b4a6b6dfe64 (diff)
downloadnotion-f34ba4d79682665603d5ce3192b5422aab3f6800.tar.gz
notion-f34ba4d79682665603d5ce3192b5422aab3f6800.tar.zst
notion-f34ba4d79682665603d5ce3192b5422aab3f6800.zip
feat: Paging improvements and ergonomics
Diffstat (limited to 'src/models/properties.rs')
-rw-r--r--src/models/properties.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/models/properties.rs b/src/models/properties.rs
index 95ddef3..b46b7f7 100644
--- a/src/models/properties.rs
+++ b/src/models/properties.rs
@@ -263,7 +263,7 @@ pub enum PropertyValue {
/// <https://developers.notion.com/reference/page#number-property-values>
Number {
id: PropertyId,
- number: Number,
+ number: Option<Number>,
},
/// <https://developers.notion.com/reference/page#select-property-values>
Select {
@@ -276,7 +276,7 @@ pub enum PropertyValue {
},
Date {
id: PropertyId,
- date: DateValue,
+ date: Option<DateValue>,
},
/// <https://developers.notion.com/reference/page#formula-property-values>
Formula {
@@ -290,7 +290,7 @@ pub enum PropertyValue {
},
Rollup {
id: PropertyId,
- relation: Rollup,
+ relation: Option<Rollup>,
},
People {
id: PropertyId,
@@ -310,7 +310,7 @@ pub enum PropertyValue {
},
Email {
id: PropertyId,
- email: String,
+ email: Option<String>,
},
PhoneNumber {
id: PropertyId,