diff options
Diffstat (limited to 'src/resp_types.rs')
-rw-r--r-- | src/resp_types.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resp_types.rs b/src/resp_types.rs index e77d03d..03cce9f 100644 --- a/src/resp_types.rs +++ b/src/resp_types.rs @@ -158,7 +158,8 @@ pub struct RespMinimalCommunityInfo<'a> { pub struct RespUserInfo<'a> { #[serde(flatten)] pub base: RespMinimalAuthorInfo<'a>, - pub description: Cow<'a, str>, + pub description_html: Option<Cow<'a, str>>, + pub description_text: Option<Cow<'a, str>>, pub suspended: Option<bool>, pub your_note: Option<JustContentText<'a>>, } @@ -204,7 +205,8 @@ pub struct RespCommunityInfoMaybeYour<'a> { #[serde(flatten)] pub base: RespMinimalCommunityInfo<'a>, - pub description: Cow<'a, str>, + pub description_html: Option<Cow<'a, str>>, + pub description_text: Option<Cow<'a, str>>, pub you_are_moderator: Option<bool>, pub your_follow: Option<RespYourFollow>, |