#[non_exhaustive]pub enum AuthType {
Password,
ReCaptcha,
EmailIdentity,
Msisdn,
Sso,
Dummy,
RegistrationToken,
Terms,
OAuth,
}client or server only.Expand description
The type of an authentication stage.
This type can hold an arbitrary string. To build this with a custom value, convert it from a
string with ::from() / .into(). To check for values that are not available as a
documented variant here, use its string representation, obtained through
.as_str().
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Password
Password-based authentication (m.login.password).
ReCaptcha
Google ReCaptcha 2.0 authentication (m.login.recaptcha).
EmailIdentity
Email-based authentication (m.login.email.identity).
Msisdn
Phone number-based authentication (m.login.msisdn).
Sso
SSO-based authentication (m.login.sso).
Dummy
Dummy authentication (m.login.dummy).
RegistrationToken
Registration token-based authentication (m.login.registration_token).
Terms
Terms of service (m.login.terms).
This type is only valid during account registration.
OAuth
OAuth 2.0 (m.oauth).
This type is only valid with the cross-signing keys upload endpoint, after logging in with the OAuth 2.0 API.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthType
impl<'de> Deserialize<'de> for AuthType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Ord for AuthType
impl Ord for AuthType
Source§impl PartialOrd for AuthType
impl PartialOrd for AuthType
impl Eq for AuthType
Auto Trait Implementations§
impl Freeze for AuthType
impl RefUnwindSafe for AuthType
impl Send for AuthType
impl Sync for AuthType
impl Unpin for AuthType
impl UnwindSafe for AuthType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.