client-api: Support alternative name for thirdparty_id_creds fields
This commit is contained in:
parent
795fde03dd
commit
0ea6dca815
@ -524,6 +524,7 @@ impl IncomingOAuth2 {
|
|||||||
pub struct EmailIdentity<'a> {
|
pub struct EmailIdentity<'a> {
|
||||||
/// Thirdparty identifier credentials.
|
/// Thirdparty identifier credentials.
|
||||||
#[serde(rename = "threepidCreds")]
|
#[serde(rename = "threepidCreds")]
|
||||||
|
#[cfg_attr(feature = "compat", alias = "threepid_creds")]
|
||||||
pub thirdparty_id_creds: &'a [ThirdpartyIdCredentials],
|
pub thirdparty_id_creds: &'a [ThirdpartyIdCredentials],
|
||||||
|
|
||||||
/// The value of the session key given by the homeserver, if any.
|
/// The value of the session key given by the homeserver, if any.
|
||||||
@ -551,6 +552,7 @@ impl IncomingEmailIdentity {
|
|||||||
pub struct Msisdn<'a> {
|
pub struct Msisdn<'a> {
|
||||||
/// Thirdparty identifier credentials.
|
/// Thirdparty identifier credentials.
|
||||||
#[serde(rename = "threepidCreds")]
|
#[serde(rename = "threepidCreds")]
|
||||||
|
#[cfg_attr(feature = "compat", alias = "threepid_creds")]
|
||||||
pub thirdparty_id_creds: &'a [ThirdpartyIdCredentials],
|
pub thirdparty_id_creds: &'a [ThirdpartyIdCredentials],
|
||||||
|
|
||||||
/// The value of the session key given by the homeserver, if any.
|
/// The value of the session key given by the homeserver, if any.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user