Enum ruma_client_api::r0::uiaa::AuthData [−][src]
#[non_exhaustive]
pub enum AuthData<'a> {
Password(Password<'a>),
ReCaptcha(ReCaptcha<'a>),
Token(Token<'a>),
OAuth2(OAuth2<'a>),
EmailIdentity(EmailIdentity<'a>),
Msisdn(Msisdn<'a>),
Dummy(Dummy<'a>),
FallbackAcknowledgement(FallbackAcknowledgement<'a>),
// some variants omitted
}Expand description
Additional authentication information for the user-interactive authentication API.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Password-based authentication (m.login.password).
Tuple Fields of Password
0: Password<'a>Google ReCaptcha 2.0 authentication (m.login.recaptcha).
Tuple Fields of ReCaptcha
0: ReCaptcha<'a>Token-based authentication (m.login.token).
Tuple Fields of Token
0: Token<'a>OAuth2-based authentication (m.login.oauth2).
Tuple Fields of OAuth2
0: OAuth2<'a>Email-based authentication (m.login.email.identity).
Tuple Fields of EmailIdentity
0: EmailIdentity<'a>Phone number-based authentication (m.login.msisdn).
Tuple Fields of Msisdn
0: Msisdn<'a>Dummy authentication (m.login.dummy).
Tuple Fields of Dummy
0: Dummy<'a>Fallback acknowledgement.
Tuple Fields of FallbackAcknowledgement
0: FallbackAcknowledgement<'a>Implementations
Creates a new AuthData::FallbackAcknowledgement with the given session key.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for AuthData<'a>
impl<'a> UnwindSafe for AuthData<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more