client-api: Revert change of serialized name of thredparty_id_creds under compat feature

This commit is contained in:
Jonas Platte 2021-11-03 18:26:31 +01:00
parent 8b0687b08c
commit 347ae72531
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -523,14 +523,10 @@ impl IncomingOAuth2 {
#[serde(tag = "type", rename = "m.login.email.identity")]
pub struct EmailIdentity<'a> {
/// Thirdparty identifier credentials.
#[cfg_attr(not(feature = "compat"), serde(rename = "threepidCreds"))]
#[cfg_attr(rename = "threepidCreds")]
#[cfg_attr(
feature = "compat",
serde(
rename = "threepid_creds",
alias = "threepidCreds",
deserialize_with = "deserialize_thirdparty_id_creds"
)
serde(alias = "threepid_creds", deserialize_with = "deserialize_thirdparty_id_creds")
)]
pub thirdparty_id_creds: &'a [ThirdpartyIdCredentials],
@ -558,14 +554,10 @@ impl IncomingEmailIdentity {
#[serde(tag = "type", rename = "m.login.msisdn")]
pub struct Msisdn<'a> {
/// Thirdparty identifier credentials.
#[cfg_attr(not(feature = "compat"), serde(rename = "threepidCreds"))]
#[cfg_attr(rename = "threepidCreds")]
#[cfg_attr(
feature = "compat",
serde(
rename = "threepid_creds",
alias = "threepidCreds",
deserialize_with = "deserialize_thirdparty_id_creds"
)
serde(alias = "threepid_creds", deserialize_with = "deserialize_thirdparty_id_creds")
)]
pub thirdparty_id_creds: &'a [ThirdpartyIdCredentials],