client-api: Add missing serde attributes

This commit is contained in:
Jonas Platte 2022-06-17 12:03:18 +02:00
parent aae6fa2843
commit fa4ad103f4
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C

View File

@ -25,17 +25,21 @@ ruma_api! {
pub homeserver: HomeserverInfo,
/// Information about the identity server to connect to.
#[serde(rename = "m.identity_server")]
#[serde(rename = "m.identity_server", skip_serializing_if = "Option::is_none")]
pub identity_server: Option<IdentityServerInfo>,
/// Information about the tile server to use to display location data.
#[cfg(feature = "unstable-msc3488")]
#[serde(rename = "org.matrix.msc3488.tile_server", alias = "m.tile_server")]
#[serde(
rename = "org.matrix.msc3488.tile_server",
alias = "m.tile_server",
skip_serializing_if = "Option::is_none",
)]
pub tile_server: Option<TileServerInfo>,
/// Information about the authentication server to connect to when using OpenID Connect.
#[cfg(feature = "unstable-msc2965")]
#[serde(rename = "m.authentication")]
#[serde(rename = "m.authentication", skip_serializing_if = "Option::is_none")]
pub authentication: Option<AuthenticationServerInfo>,
}