From 88caed2305c582edc4bc6af2a60270b9b2d1263c Mon Sep 17 00:00:00 2001 From: Yuna Tomida Date: Sun, 12 Feb 2023 05:36:27 +0900 Subject: [PATCH] make all children Option --- src/models/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/models/mod.rs b/src/models/mod.rs index 3c9d12b..af2f1f8 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -395,12 +395,12 @@ pub struct TableOfContents { #[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)] pub struct ColumnListFields { - pub children: Vec, + pub children: Option>, } #[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)] pub struct ColumnFields { - pub children: Vec, + pub children: Option>, } #[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)] @@ -411,7 +411,7 @@ pub struct LinkPreviewFields { #[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)] pub struct TemplateFields { pub rich_text: Vec, - pub children: Vec, + pub children: Option>, } #[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)] @@ -430,7 +430,7 @@ pub struct SyncedFromObject { #[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)] pub struct SyncedBlockFields { pub synced_from: Option, - pub children: Vec, + pub children: Option>, } #[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)] @@ -438,7 +438,7 @@ pub struct TableFields { pub table_width: u64, pub has_column_header: bool, pub has_row_header: bool, - pub children: Vec, + pub children: Option>, } #[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)]