pub struct DocumentHash(/* private fields */);Expand description
A BLAKE3 hash of document content.
Implementations§
Source§impl DocumentHash
impl DocumentHash
Sourcepub fn from_bytes(bytes: [u8; 32]) -> Self
pub fn from_bytes(bytes: [u8; 32]) -> Self
Create a hash from raw bytes.
Sourcepub fn from_base64(s: &str) -> Result<Self>
pub fn from_base64(s: &str) -> Result<Self>
Decode a hash from a base64 string.
Trait Implementations§
Source§impl Clone for DocumentHash
impl Clone for DocumentHash
Source§fn clone(&self) -> DocumentHash
fn clone(&self) -> DocumentHash
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 DocumentHash
impl Debug for DocumentHash
Source§impl PartialEq for DocumentHash
impl PartialEq for DocumentHash
impl Eq for DocumentHash
impl StructuralPartialEq for DocumentHash
Auto Trait Implementations§
impl Freeze for DocumentHash
impl RefUnwindSafe for DocumentHash
impl Send for DocumentHash
impl Sync for DocumentHash
impl Unpin for DocumentHash
impl UnwindSafe for DocumentHash
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