pub struct Persistent {
pub salt: [u8; 8],
pub authorization_key: Option<KeyId>,
}Fields§
§salt: [u8; 8]This is the user’s password, passed through PBKDF-HMAC-SHA1. It is used for authorization using challenge HMAC-SHA1’ing.
Implementations§
Source§impl Persistent
impl Persistent
pub fn password_set(&self) -> bool
Trait Implementations§
Source§impl Clone for Persistent
impl Clone for Persistent
Source§fn clone(&self) -> Persistent
fn clone(&self) -> Persistent
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 Persistent
impl Debug for Persistent
Source§impl<'de> Deserialize<'de> for Persistent
impl<'de> Deserialize<'de> for Persistent
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
Source§impl PartialEq for Persistent
impl PartialEq for Persistent
Source§impl Serialize for Persistent
impl Serialize for Persistent
impl Eq for Persistent
impl StructuralPartialEq for Persistent
Auto Trait Implementations§
impl Freeze for Persistent
impl RefUnwindSafe for Persistent
impl Send for Persistent
impl Sync for Persistent
impl Unpin for Persistent
impl UnwindSafe for Persistent
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