skip serialising identity_server
if None, and return empty string for base_url
identity server if null
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
d01b3cc967
commit
cab4d5e18f
@ -354,7 +354,7 @@ pub mod v3 {
|
|||||||
pub homeserver: HomeserverInfo,
|
pub homeserver: HomeserverInfo,
|
||||||
|
|
||||||
/// Information about the identity server to connect to.
|
/// 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>,
|
pub identity_server: Option<IdentityServerInfo>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -385,6 +385,7 @@ pub mod v3 {
|
|||||||
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||||
pub struct IdentityServerInfo {
|
pub struct IdentityServerInfo {
|
||||||
/// The base URL for the identity server for client-server connections.
|
/// The base URL for the identity server for client-server connections.
|
||||||
|
#[serde(default)]
|
||||||
pub base_url: String,
|
pub base_url: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user