diff options
Diffstat (limited to 'src/resp_types.rs')
-rw-r--r-- | src/resp_types.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/resp_types.rs b/src/resp_types.rs index d81c6ef..53e0935 100644 --- a/src/resp_types.rs +++ b/src/resp_types.rs @@ -73,11 +73,16 @@ pub struct RespLoginInfo { #[derive(Deserialize, Debug)] pub struct Empty {} +#[derive(Deserialize, Debug)] +pub struct RespYourFollow { + pub accepted: bool, +} + #[derive(Deserialize)] pub struct RespCommunityInfoMaybeYour<'a> { #[serde(flatten)] pub base: RespMinimalCommunityInfo<'a>, - pub your_follow: Option<Empty>, + pub your_follow: Option<RespYourFollow>, } impl<'a> AsRef<RespMinimalCommunityInfo<'a>> for RespCommunityInfoMaybeYour<'a> { |