pub struct KeyVersion(/* private fields */);Expand description
A monotonically increasing key version used to identify which pepper was applied to a given password hash. Stored alongside the hash so rotation is non-destructive.
Implementations§
Trait Implementations§
Source§impl Clone for KeyVersion
impl Clone for KeyVersion
Source§fn clone(&self) -> KeyVersion
fn clone(&self) -> KeyVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KeyVersion
impl Debug for KeyVersion
Source§impl Default for KeyVersion
impl Default for KeyVersion
Source§impl Display for KeyVersion
impl Display for KeyVersion
Source§impl Hash for KeyVersion
impl Hash for KeyVersion
Source§impl Ord for KeyVersion
impl Ord for KeyVersion
Source§fn cmp(&self, other: &KeyVersion) -> Ordering
fn cmp(&self, other: &KeyVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KeyVersion
impl PartialEq for KeyVersion
Source§fn eq(&self, other: &KeyVersion) -> bool
fn eq(&self, other: &KeyVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for KeyVersion
impl PartialOrd for KeyVersion
impl Copy for KeyVersion
impl Eq for KeyVersion
impl StructuralPartialEq for KeyVersion
Auto Trait Implementations§
impl Freeze for KeyVersion
impl RefUnwindSafe for KeyVersion
impl Send for KeyVersion
impl Sync for KeyVersion
impl Unpin for KeyVersion
impl UnsafeUnpin for KeyVersion
impl UnwindSafe for KeyVersion
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