client-api: Don't serialize well_known if it's None in login response

This commit is contained in:
Jonas Platte 2021-04-30 14:39:36 +02:00
parent 8c286e78d4
commit 2b04cacc82
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -54,6 +54,7 @@ ruma_api! {
/// Client configuration provided by the server. /// Client configuration provided by the server.
/// ///
/// If present, clients SHOULD use the provided object to reconfigure themselves. /// If present, clients SHOULD use the provided object to reconfigure themselves.
#[serde(skip_serializing_if = "Option::is_none")]
pub well_known: Option<DiscoveryInfo>, pub well_known: Option<DiscoveryInfo>,
} }