pub struct Argon2BasicAuthCred {
pub username: String,
pub password_hash: String,
}Fields§
§username: String§password_hash: StringImplementations§
Source§impl Argon2BasicAuthCred
impl Argon2BasicAuthCred
pub fn new(username: String, password: String) -> CredsResult<Self>
pub fn update_password(&mut self, password: String) -> CredsResult<()>
Trait Implementations§
Source§impl BasicAuthCred for Argon2BasicAuthCred
impl BasicAuthCred for Argon2BasicAuthCred
fn username(&self) -> &str
fn verify_password(&self, password: &str) -> CredsResult<bool>
fn display_name(&self) -> &str
Source§impl Clone for Argon2BasicAuthCred
impl Clone for Argon2BasicAuthCred
Source§fn clone(&self) -> Argon2BasicAuthCred
fn clone(&self) -> Argon2BasicAuthCred
Returns a duplicate 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 moreSource§impl Debug for Argon2BasicAuthCred
impl Debug for Argon2BasicAuthCred
Source§impl<'de> Deserialize<'de> for Argon2BasicAuthCred
impl<'de> Deserialize<'de> for Argon2BasicAuthCred
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 Argon2BasicAuthCred
impl RefUnwindSafe for Argon2BasicAuthCred
impl Send for Argon2BasicAuthCred
impl Sync for Argon2BasicAuthCred
impl Unpin for Argon2BasicAuthCred
impl UnsafeUnpin for Argon2BasicAuthCred
impl UnwindSafe for Argon2BasicAuthCred
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