From b5626a6e118a0c187cb97a7d38f5e8c755dd7344 Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Sun, 5 May 2024 21:44:40 +0200 Subject: [PATCH] Add linked_spaces field --- src/status.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/status.rs b/src/status.rs index 30ec96b..29cf05a 100644 --- a/src/status.rs +++ b/src/status.rs @@ -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 { @@ -265,6 +271,8 @@ pub struct Status { pub links: Option>, #[serde(skip_serializing_if = "Option::is_none")] pub membership_plans: Option>, + #[serde(skip_serializing_if = "Option::is_none")] + pub linked_spaces: Option>, // SpaceAPI internal usage #[serde(skip_serializing_if = "Option::is_none")]