client-api: Support alternative name for thirdparty_id_creds fields

This commit is contained in:
Jonas Platte 2021-11-03 18:05:35 +01:00
parent 795fde03dd
commit 0ea6dca815
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

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