pub struct HashResult {
pub file_hash: String,
pub content_hash: Option<String>,
}Expand description
Result of hashing a file.
Fields§
§file_hash: StringDJB2 hash of entire file content. Always present.
content_hash: Option<String>Format-specific semantic hash (e.g. PNG pixel identity). Present only for supported formats.
Trait Implementations§
Source§impl Clone for HashResult
impl Clone for HashResult
Source§fn clone(&self) -> HashResult
fn clone(&self) -> HashResult
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 HashResult
impl Debug for HashResult
Source§impl PartialEq for HashResult
impl PartialEq for HashResult
Source§fn eq(&self, other: &HashResult) -> bool
fn eq(&self, other: &HashResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HashResult
impl StructuralPartialEq for HashResult
Auto Trait Implementations§
impl Freeze for HashResult
impl RefUnwindSafe for HashResult
impl Send for HashResult
impl Sync for HashResult
impl Unpin for HashResult
impl UnsafeUnpin for HashResult
impl UnwindSafe for HashResult
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