Struct tag_password::Hashed
source · pub struct Hashed;
Expand description
Marker type indicating a hashed password.
This struct is used as a marker to indicate whether a password has been hashed or not.
It serves as a zero-sized type without any fields, consuming no memory at runtime.
When paired with PhantomData
, it enables compile-time checks to distinguish
between hashed and non-hashed password types.
Trait Implementations§
source§impl PartialEq for Hashed
impl PartialEq for Hashed
impl Eq for Hashed
impl StructuralEq for Hashed
impl StructuralPartialEq for Hashed
Auto Trait Implementations§
impl RefUnwindSafe for Hashed
impl Send for Hashed
impl Sync for Hashed
impl Unpin for Hashed
impl UnwindSafe for Hashed
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