client-api: Fix serde attributes

This commit is contained in:
Jonas Platte 2021-11-03 18:13:58 +01:00
parent d4df8ac76d
commit 076420d798
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -524,7 +524,7 @@ impl IncomingOAuth2 {
pub struct EmailIdentity<'a> {
/// Thirdparty identifier credentials.
#[cfg_attr(not(feature = "compat"), serde(rename = "threepidCreds"))]
#[cfg_attr(feature = "compat", rename = "threepid_creds", alias = "threepidCreds")]
#[cfg_attr(feature = "compat", serde(rename = "threepid_creds", alias = "threepidCreds"))]
pub thirdparty_id_creds: &'a [ThirdpartyIdCredentials],
/// The value of the session key given by the homeserver, if any.
@ -552,7 +552,7 @@ impl IncomingEmailIdentity {
pub struct Msisdn<'a> {
/// Thirdparty identifier credentials.
#[cfg_attr(not(feature = "compat"), serde(rename = "threepidCreds"))]
#[cfg_attr(feature = "compat", rename = "threepid_creds", alias = "threepidCreds")]
#[cfg_attr(feature = "compat", serde(rename = "threepid_creds", alias = "threepidCreds"))]
pub thirdparty_id_creds: &'a [ThirdpartyIdCredentials],
/// The value of the session key given by the homeserver, if any.