diff options
author | Felix Ableitner <me@nutomic.com> | 2019-12-27 18:25:07 +0100 |
---|---|---|
committer | Felix Ableitner <me@nutomic.com> | 2019-12-30 13:31:54 +0100 |
commit | 581f36d6eff4e79139afd5049b4efb8b0ccc6e99 (patch) | |
tree | d65f7bdbf96fc2ae0f796726a8763216ee624a9e /server/src/api/community.rs | |
parent | 47d55d9d2b69e7da49160675206b64a14ab75ebe (diff) |
Implementing very basic federation including test setup
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 5c97f088..014fa4c9 100644 --- a/server/src/api/community.rs +++ b/server/src/api/community.rs @@ -4,16 +4,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)] @@ -40,10 +40,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)] |