X-Git-Url: http://these/git/?a=blobdiff_plain;f=lemmy_api_structs%2Fsrc%2Fcommunity.rs;fp=server%2Flemmy_api_structs%2Fsrc%2Fcommunity.rs;h=6c543eac252f28c017c3fe6342286481d4d19d14;hb=5c6258390c46159c16f49295314c6519215fc6ae;hp=52c2ec5578d0b7a7b5e238e75c9275f4fda08d77;hpb=b69524b498983da636b3a31f5acb74fbb1f13ab4;p=lemmy.git diff --git a/server/lemmy_api_structs/src/community.rs b/lemmy_api_structs/src/community.rs similarity index 93% rename from server/lemmy_api_structs/src/community.rs rename to lemmy_api_structs/src/community.rs index 52c2ec55..6c543eac 100644 --- a/server/lemmy_api_structs/src/community.rs +++ b/lemmy_api_structs/src/community.rs @@ -129,3 +129,13 @@ pub struct TransferCommunity { pub user_id: i32, pub auth: String, } + +#[derive(Deserialize, Debug)] +pub struct CommunityJoin { + pub community_id: i32, +} + +#[derive(Serialize, Clone)] +pub struct CommunityJoinResponse { + pub joined: bool, +}