File tree 4 files changed +13
-3
lines changed
4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ fn rich_text_mention_user_person() {
92
92
} ,
93
93
}
94
94
} ,
95
+ href: None ,
95
96
}
96
97
)
97
98
}
@@ -122,6 +123,7 @@ fn rich_text_mention_date() {
122
123
time_zone: None ,
123
124
}
124
125
} ,
126
+ href: None ,
125
127
}
126
128
)
127
129
}
@@ -154,6 +156,7 @@ fn rich_text_mention_date_with_time() {
154
156
time_zone: None ,
155
157
}
156
158
} ,
159
+ href: None ,
157
160
}
158
161
)
159
162
}
@@ -186,6 +189,7 @@ fn rich_text_mention_date_with_end() {
186
189
time_zone: None ,
187
190
}
188
191
} ,
192
+ href: None ,
189
193
}
190
194
)
191
195
}
@@ -223,6 +227,7 @@ fn rich_text_mention_date_with_end_and_time() {
223
227
time_zone: None ,
224
228
}
225
229
} ,
230
+ href: None ,
226
231
}
227
232
)
228
233
}
@@ -250,7 +255,8 @@ fn rich_text_mention_page() {
250
255
page: MentionId {
251
256
id: PageId :: from_str( "c81ee776-2752-4e98-aa66-c37bd4ba9b8d" ) . unwrap( )
252
257
}
253
- }
258
+ } ,
259
+ href: Some ( "https://www.notion.so/c81ee77627524e98aa66c37bd4ba9b8d" . to_string( ) )
254
260
}
255
261
) ;
256
262
}
@@ -274,6 +280,7 @@ fn rich_text_mention_database() {
274
280
underline: Some ( false ) ,
275
281
} ) ,
276
282
} ,
283
+ href: Some ( "https://www.notion.so/baa9d74593254088a992721dc2fa21dd" . to_string( ) ) ,
277
284
mention: MentionObject :: Database {
278
285
database: MentionId {
279
286
id: DatabaseId :: from_str( "baa9d745-9325-4088-a992-721dc2fa21dd" ) . unwrap( )
Original file line number Diff line number Diff line change 14
14
"code" : false ,
15
15
"color" : " default"
16
16
},
17
- "plain_text" : " Shopping lists"
17
+ "plain_text" : " Shopping lists" ,
18
+ "href" : " https://www.notion.so/baa9d74593254088a992721dc2fa21dd"
18
19
}
Original file line number Diff line number Diff line change 14
14
"code" : false ,
15
15
"color" : " default"
16
16
},
17
- "plain_text" : " Shopping List 2023-01-20 "
17
+ "plain_text" : " Shopping List 2023-01-20 " ,
18
+ "href" : " https://www.notion.so/c81ee77627524e98aa66c37bd4ba9b8d"
18
19
}
Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ pub enum RichText {
110
110
#[ serde( flatten) ]
111
111
rich_text : RichTextCommon ,
112
112
mention : MentionObject ,
113
+ href : Option < String > ,
113
114
} ,
114
115
/// See <https://developers.notion.com/reference/rich-text#equation-objects>
115
116
Equation {
You can’t perform that action at this time.
0 commit comments