pub enum DbCred {
    Pw {
        password: Option<DbPasswordV1>,
        webauthn: Option<Vec<DbWebauthnV1>>,
        totp: Option<DbTotpV1>,
        backup_code: Option<DbBackupCodeV1>,
        claims: Vec<String>,
        uuid: Uuid,
    },
    GPw {
        password: Option<DbPasswordV1>,
        webauthn: Option<Vec<DbWebauthnV1>>,
        totp: Option<DbTotpV1>,
        backup_code: Option<DbBackupCodeV1>,
        claims: Vec<String>,
        uuid: Uuid,
    },
    PwMfa {
        password: Option<DbPasswordV1>,
        webauthn: Option<Vec<DbWebauthnV1>>,
        totp: Option<DbTotpV1>,
        backup_code: Option<DbBackupCodeV1>,
        claims: Vec<String>,
        uuid: Uuid,
    },
    Wn {
        password: Option<DbPasswordV1>,
        webauthn: Option<Vec<DbWebauthnV1>>,
        totp: Option<DbTotpV1>,
        backup_code: Option<DbBackupCodeV1>,
        claims: Vec<String>,
        uuid: Uuid,
    },
    TmpWn {
        webauthn: Vec<(String, PasskeyV4)>,
        uuid: Uuid,
    },
    V2Password {
        password: DbPasswordV1,
        uuid: Uuid,
    },
    V2GenPassword {
        password: DbPasswordV1,
        uuid: Uuid,
    },
    V2PasswordMfa {
        password: DbPasswordV1,
        totp: Option<DbTotpV1>,
        backup_code: Option<DbBackupCodeV1>,
        webauthn: Vec<(String, SecurityKeyV4)>,
        uuid: Uuid,
    },
}

Variants

Pw

Fields

password: Option<DbPasswordV1>
webauthn: Option<Vec<DbWebauthnV1>>
backup_code: Option<DbBackupCodeV1>
claims: Vec<String>
uuid: Uuid

GPw

Fields

password: Option<DbPasswordV1>
webauthn: Option<Vec<DbWebauthnV1>>
backup_code: Option<DbBackupCodeV1>
claims: Vec<String>
uuid: Uuid

PwMfa

Fields

password: Option<DbPasswordV1>
webauthn: Option<Vec<DbWebauthnV1>>
backup_code: Option<DbBackupCodeV1>
claims: Vec<String>
uuid: Uuid

Wn

Fields

password: Option<DbPasswordV1>
webauthn: Option<Vec<DbWebauthnV1>>
backup_code: Option<DbBackupCodeV1>
claims: Vec<String>
uuid: Uuid

TmpWn

Fields

webauthn: Vec<(String, PasskeyV4)>
uuid: Uuid

V2Password

Fields

password: DbPasswordV1
uuid: Uuid

V2GenPassword

Fields

password: DbPasswordV1
uuid: Uuid

V2PasswordMfa

Fields

password: DbPasswordV1
backup_code: Option<DbBackupCodeV1>
webauthn: Vec<(String, SecurityKeyV4)>
uuid: Uuid

Trait Implementations

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
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