X-Git-Url: http://these/git/?a=blobdiff_plain;f=lemmy_api_structs%2Fsrc%2Fpost.rs;fp=server%2Flemmy_api_structs%2Fsrc%2Fpost.rs;h=1ccbe7e321603e75afd39425bda4b13277728dc5;hb=5c6258390c46159c16f49295314c6519215fc6ae;hp=d1adf1bd10fc4f376eb05374e7708032b388f18b;hpb=b69524b498983da636b3a31f5acb74fbb1f13ab4;p=lemmy.git diff --git a/server/lemmy_api_structs/src/post.rs b/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 d1adf1bd..1ccbe7e3 100644 --- a/server/lemmy_api_structs/src/post.rs +++ b/lemmy_api_structs/src/post.rs @@ -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, +}