pub struct Integrity {
pub algorithm: Algorithm,
pub hash: Hash,
pub block_size: u32,
pub blocks: Vec<Hash>,
}Expand description
Integrity information of a file.
Fields
algorithm: AlgorithmHashing algorithm used.
hash: HashThe hash of the entire file.
block_size: u32Indicates the size of each block of the hashes in blocks.
blocks: Vec<Hash>Hashes of blocks.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Integrity
impl<'de> Deserialize<'de> for Integrity
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Integrity
impl Send for Integrity
impl Sync for Integrity
impl Unpin for Integrity
impl UnwindSafe for Integrity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more