diff options
Diffstat (limited to 'src/resp_types.rs')
-rw-r--r-- | src/resp_types.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resp_types.rs b/src/resp_types.rs index 96b1626..d2ec489 100644 --- a/src/resp_types.rs +++ b/src/resp_types.rs @@ -137,6 +137,7 @@ pub struct RespUserInfo<'a> { #[serde(flatten)] pub base: RespMinimalAuthorInfo<'a>, pub description: Cow<'a, str>, + pub your_note: Option<JustContentText<'a>>, } impl<'a> AsRef<RespMinimalAuthorInfo<'a>> for RespUserInfo<'a> { @@ -228,6 +229,11 @@ pub struct JustUser<'a> { } #[derive(Deserialize, Debug)] +pub struct JustContentText<'a> { + pub content_text: Cow<'a, str>, +} + +#[derive(Deserialize, Debug)] pub struct JustContentHTML<'a> { pub content_html: Cow<'a, str>, } |