From 0ea6dca815fcdb2ed0e5bf6331d3b9043b79babd Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 3 Nov 2021 18:05:35 +0100 Subject: [PATCH] client-api: Support alternative name for thirdparty_id_creds fields --- crates/ruma-client-api/src/r0/uiaa.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ruma-client-api/src/r0/uiaa.rs b/crates/ruma-client-api/src/r0/uiaa.rs index f9ce3646..bd814431 100644 --- a/crates/ruma-client-api/src/r0/uiaa.rs +++ b/crates/ruma-client-api/src/r0/uiaa.rs @@ -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.