]> Untitled Git - lemmy.git/blobdiff - lemmy_api_structs/src/community.rs
Isomorphic docker (#1124)
[lemmy.git] / 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 52c2ec5578d0b7a7b5e238e75c9275f4fda08d77..6c543eac252f28c017c3fe6342286481d4d19d14 100644 (file)
@@ -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,
+}