Enum ate_auth::AuthenticationMethod[][src]

pub enum AuthenticationMethod {
    WithPrivateKey(PublicSignKey),
    WithPassword {
        salt: String,
        hash: AteHash,
    },
    WithAuthenticator {
        secret: String,
    },
    WithSmsAuthentication {
        salt: String,
        hash: AteHash,
    },
    WithEmailVerification {
        code: String,
    },
    WithSshKey {
        key_type: SshKeyType,
        secret: String,
    },
}

Variants

WithPrivateKey(PublicSignKey)
WithPassword

Fields of WithPassword

salt: Stringhash: AteHash
WithAuthenticator

Fields of WithAuthenticator

secret: String
WithSmsAuthentication

Fields of WithSmsAuthentication

salt: Stringhash: AteHash
WithEmailVerification

Fields of WithEmailVerification

code: String
WithSshKey

Fields of WithSshKey

key_type: SshKeyTypesecret: String

Trait Implementations

impl Clone for AuthenticationMethod[src]

impl Debug for AuthenticationMethod[src]

impl<'de> Deserialize<'de> for AuthenticationMethod[src]

impl Serialize for AuthenticationMethod[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,