diff options
Diffstat (limited to 'server/src/api/community.rs')
-rw-r--r-- | server/src/api/community.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/src/api/community.rs b/server/src/api/community.rs index 0bf846c3..1854dd14 100644 --- a/server/src/api/community.rs +++ b/server/src/api/community.rs @@ -5,16 +5,16 @@ use std::str::FromStr; #[derive(Serialize, Deserialize)] pub struct GetCommunity { id: Option<i32>, - name: Option<String>, + pub name: Option<String>, auth: Option<String>, } #[derive(Serialize, Deserialize)] pub struct GetCommunityResponse { - op: String, - community: CommunityView, - moderators: Vec<CommunityModeratorView>, - admins: Vec<UserView>, + pub op: String, + pub community: CommunityView, + pub moderators: Vec<CommunityModeratorView>, + pub admins: Vec<UserView>, } #[derive(Serialize, Deserialize)] @@ -41,10 +41,10 @@ pub struct ListCommunities { auth: Option<String>, } -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Debug)] pub struct ListCommunitiesResponse { - op: String, - communities: Vec<CommunityView>, + pub op: String, + pub communities: Vec<CommunityView>, } #[derive(Serialize, Deserialize, Clone)] |