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§
Source§impl<'de> Deserialize<'de> for Integrity
impl<'de> Deserialize<'de> for Integrity
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
Auto Trait Implementations§
impl Freeze for Integrity
impl RefUnwindSafe for Integrity
impl Send for Integrity
impl Sync for Integrity
impl Unpin for Integrity
impl UnwindSafe for Integrity
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