pub struct Hash32(pub [u8; 32]);Expand description
A 32-byte hash value used for user identification.
This is a wrapper around [u8; 32] that provides convenient methods
for creating, displaying, and parsing hash values.
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hash32
impl<'de> Deserialize<'de> for Hash32
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
impl Copy for Hash32
impl Eq for Hash32
impl StructuralPartialEq for Hash32
Auto Trait Implementations§
impl Freeze for Hash32
impl RefUnwindSafe for Hash32
impl Send for Hash32
impl Sync for Hash32
impl Unpin for Hash32
impl UnwindSafe for Hash32
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