Skip to content

Commit

Permalink
Add linked_spaces field
Browse files Browse the repository at this point in the history
  • Loading branch information
rnestler committed May 20, 2024
1 parent e4eef06 commit b5626a6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ pub enum ApiVersion {
V14,
}

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
pub struct LinkedSpace {
endpoint: String,
website: String,
}

/// The main SpaceAPI status object.
#[derive(Serialize, Deserialize, Default, Debug, Clone, PartialEq)]
pub struct Status {
Expand Down Expand Up @@ -265,6 +271,8 @@ pub struct Status {
pub links: Option<Vec<Link>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub membership_plans: Option<Vec<MembershipPlan>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub linked_spaces: Option<Vec<LinkedSpace>>,

// SpaceAPI internal usage
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down

0 comments on commit b5626a6

Please sign in to comment.