diff options
author | 2021-09-22 14:13:05 -0700 | |
---|---|---|
committer | 2021-09-22 14:13:05 -0700 | |
commit | f34ba4d79682665603d5ce3192b5422aab3f6800 (patch) | |
tree | d2bded634af25a2bfe7e5ab817b14a5759e0f5ef /src/models/text.rs | |
parent | 50faf778671358d70fa967735a062b4a6b6dfe64 (diff) | |
download | notion-f34ba4d79682665603d5ce3192b5422aab3f6800.tar.gz notion-f34ba4d79682665603d5ce3192b5422aab3f6800.tar.zst notion-f34ba4d79682665603d5ce3192b5422aab3f6800.zip |
feat: Paging improvements and ergonomics
Diffstat (limited to 'src/models/text.rs')
-rw-r--r-- | src/models/text.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/models/text.rs b/src/models/text.rs index b960b6d..16274ab 100644 --- a/src/models/text.rs +++ b/src/models/text.rs @@ -45,7 +45,7 @@ pub struct RichTextCommon { pub annotations: Option<Annotations>, } -#[derive(Serialize, Deserialize, Debug, Eq, PartialEq)] +#[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)] pub struct Link { pub url: String, } @@ -53,7 +53,7 @@ pub struct Link { #[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)] pub struct Text { pub content: String, - pub link: Option<String>, + pub link: Option<Link>, } /// Rich text objects contain data for displaying formatted text, mentions, and equations. |