Enum ruma::api::client::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
}
api
and (crate features client-api
or client-api-c
or client-api-s
) only.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
).
ReCaptcha(ReCaptcha<'a>)
Google ReCaptcha 2.0 authentication (m.login.recaptcha
).
Token(Token<'a>)
Token-based authentication (m.login.token
).
OAuth2(OAuth2<'a>)
OAuth2-based authentication (m.login.oauth2
).
EmailIdentity(EmailIdentity<'a>)
Email-based authentication (m.login.email.identity
).
Msisdn(Msisdn<'a>)
Phone number-based authentication (m.login.msisdn
).
Dummy(Dummy<'a>)
Dummy authentication (m.login.dummy
).
FallbackAcknowledgement(FallbackAcknowledgement<'a>)
Fallback acknowledgement.
Implementations
Creates a new AuthData::FallbackAcknowledgement
with the given session key.
Trait Implementations
type Incoming = IncomingAuthData
type Incoming = IncomingAuthData
The ‘Incoming’ variant of Self
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
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