diff options
author | 2021-12-11 20:23:11 +0200 | |
---|---|---|
committer | 2021-12-11 10:23:11 -0800 | |
commit | f48378ec16af1035af32ed16592099104a552d90 (patch) | |
tree | 5407e21cb7e99d379c5c6f5474def43ad7e99388 /src/models | |
parent | e28f581e1d91bbe40074c47a90b0bdf6528107c2 (diff) | |
download | notion-f48378ec16af1035af32ed16592099104a552d90.tar.gz notion-f48378ec16af1035af32ed16592099104a552d90.tar.zst notion-f48378ec16af1035af32ed16592099104a552d90.zip |
fix(example): Example wasn't compling + lib fixes (#19)
* get page + query database bugfixes
* fixed wrong error type
* clap integration fix
* comments cleaning
* source formatting using cargo format
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/properties.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/models/properties.rs b/src/models/properties.rs index b46b7f7..f7e3897 100644 --- a/src/models/properties.rs +++ b/src/models/properties.rs @@ -103,6 +103,7 @@ pub enum RollupFunction { Min, Max, Range, + ShowOriginal, } #[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)] @@ -284,9 +285,10 @@ pub enum PropertyValue { formula: FormulaResultValue, }, /// <https://developers.notion.com/reference/page#relation-property-values> + /// It is actually an array of relations Relation { id: PropertyId, - relation: RelationValue, + relation: Option<Vec<RelationValue>>, }, Rollup { id: PropertyId, |