]> Untitled Git - lemmy.git/blobdiff - lemmy_api_structs/src/post.rs
Isomorphic docker (#1124)
[lemmy.git] / lemmy_api_structs / src / post.rs
similarity index 92%
rename from server/lemmy_api_structs/src/post.rs
rename to lemmy_api_structs/src/post.rs
index d1adf1bd10fc4f376eb05374e7708032b388f18b..1ccbe7e321603e75afd39425bda4b13277728dc5 100644 (file)
@@ -103,3 +103,13 @@ pub struct SavePost {
   pub save: bool,
   pub auth: String,
 }
+
+#[derive(Deserialize, Debug)]
+pub struct PostJoin {
+  pub post_id: i32,
+}
+
+#[derive(Serialize, Clone)]
+pub struct PostJoinResponse {
+  pub joined: bool,
+}