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
Password(Password<'a>)Password-based authentication (m.login.password).
Tuple Fields of Password
0: Password<'a>ReCaptcha(ReCaptcha<'a>)Google ReCaptcha 2.0 authentication (m.login.recaptcha).
Tuple Fields of ReCaptcha
0: ReCaptcha<'a>Token(Token<'a>)Token-based authentication (m.login.token).
Tuple Fields of Token
0: Token<'a>OAuth2(OAuth2<'a>)OAuth2-based authentication (m.login.oauth2).
Tuple Fields of OAuth2
0: OAuth2<'a>EmailIdentity(EmailIdentity<'a>)Email-based authentication (m.login.email.identity).
Tuple Fields of EmailIdentity
0: EmailIdentity<'a>Msisdn(Msisdn<'a>)Phone number-based authentication (m.login.msisdn).
Tuple Fields of Msisdn
0: Msisdn<'a>Dummy(Dummy<'a>)Dummy authentication (m.login.dummy).
Tuple Fields of Dummy
0: Dummy<'a>FallbackAcknowledgement(FallbackAcknowledgement<'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
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more