mirror of https://github.com/LemmyNet/lemmy.git
44 lines
915 B
Rust
44 lines
915 B
Rust
use lemmy_db_schema::newtypes::{CommunityId, PostId};
|
|
use lemmy_utils::Sensitive;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
pub struct UserJoin {
|
|
pub auth: Sensitive<String>,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
pub struct UserJoinResponse {
|
|
pub joined: bool,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
pub struct CommunityJoin {
|
|
pub community_id: CommunityId,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
pub struct CommunityJoinResponse {
|
|
pub joined: bool,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
pub struct ModJoin {
|
|
pub community_id: CommunityId,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
pub struct ModJoinResponse {
|
|
pub joined: bool,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
pub struct PostJoin {
|
|
pub post_id: PostId,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
pub struct PostJoinResponse {
|
|
pub joined: bool,
|
|
}
|