pub enum HumanCredentialInput {
Password {
username: Box<str>,
password: SecretString,
},
Nostr {
public_key: Box<str>,
},
}Expand description
A human credential supplied while creating or updating an account.
This type intentionally has no Debug or Clone implementation because
the password variant owns an unredacted secret.
Variants§
Implementations§
Source§impl HumanCredentialInput
impl HumanCredentialInput
pub const fn provider(&self) -> HumanLoginProvider
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HumanCredentialInput
impl<'de> Deserialize<'de> for HumanCredentialInput
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
Auto Trait Implementations§
impl Freeze for HumanCredentialInput
impl RefUnwindSafe for HumanCredentialInput
impl Send for HumanCredentialInput
impl Sync for HumanCredentialInput
impl Unpin for HumanCredentialInput
impl UnsafeUnpin for HumanCredentialInput
impl UnwindSafe for HumanCredentialInput
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