X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi_common%2Fsrc%2Fcommunity.rs;h=fbfe3c6607d9c507c3293fda15cd2cd878d99c46;hb=7f9b55e7935f6093895734b1a45ec128d2cb2a33;hp=9686172ac8464dbe5394e4457533d52c3beff126;hpb=762b85b27e812856f65933a182188e7102617aae;p=lemmy.git diff --git a/crates/api_common/src/community.rs b/crates/api_common/src/community.rs index 9686172a..fbfe3c66 100644 --- a/crates/api_common/src/community.rs +++ b/crates/api_common/src/community.rs @@ -93,6 +93,14 @@ pub struct EditCommunity { pub auth: Sensitive, } +#[derive(Debug, Serialize, Deserialize)] +pub struct HideCommunity { + pub community_id: CommunityId, + pub hidden: bool, + pub reason: Option, + pub auth: Sensitive, +} + #[derive(Debug, Serialize, Deserialize)] pub struct DeleteCommunity { pub community_id: CommunityId,