pub enum CredentialData {
Trust,
Deny,
Plain(String),
Md5(StoredHash),
Scram(StoredKey),
}Variants§
Trust
A credential that always succeeds, regardless of input password. Due to the design of SCRAM-SHA-256, this cannot be used with that auth type.
Deny
A credential that always fails, regardless of the input password.
Plain(String)
A plain-text password.
Md5(StoredHash)
A stored MD5 hash + salt.
Scram(StoredKey)
A stored SCRAM-SHA-256 key.
Implementations§
Trait Implementations§
Source§impl Clone for CredentialData
impl Clone for CredentialData
Source§fn clone(&self) -> CredentialData
fn clone(&self) -> CredentialData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CredentialData
impl RefUnwindSafe for CredentialData
impl Send for CredentialData
impl Sync for CredentialData
impl Unpin for CredentialData
impl UnwindSafe for CredentialData
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