#[non_exhaustive]#[repr(u8)]pub enum AuthKind {
Passkey = 0,
Email = 1,
Handle = 2,
Address = 3,
}Expand description
Authentication channel family. #[non_exhaustive] so new variants
(WebAuthn extensions, social federation) can append without breaking
compatibility.
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.
Passkey = 0
WebAuthn / FIDO2 credential.
Email = 1
Email OTP / magic link.
Handle = 2
Platform handle + password.
Address = 3
Wallet / on-chain address.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthKind
impl<'de> Deserialize<'de> for AuthKind
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for AuthKind
impl Eq for AuthKind
impl StructuralPartialEq for AuthKind
Auto Trait Implementations§
impl Freeze for AuthKind
impl RefUnwindSafe for AuthKind
impl Send for AuthKind
impl Sync for AuthKind
impl Unpin for AuthKind
impl UnsafeUnpin for AuthKind
impl UnwindSafe for AuthKind
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
Mutably borrows from an owned value. Read more