pub struct FileIntegrity {
pub algorithm: String,
pub hash: String,
pub block_size: usize,
pub blocks: Vec<String>,
}Expand description
SHA256-based file integrity information for an ASAR archive entry.
Fields§
§algorithm: String§hash: String§block_size: usize§blocks: Vec<String>Implementations§
Source§impl FileIntegrity
impl FileIntegrity
pub fn from_buffer(data: &[u8]) -> Self
pub fn from_reader<R: Read>(reader: &mut R) -> Result<Self>
Trait Implementations§
Source§impl Clone for FileIntegrity
impl Clone for FileIntegrity
Source§fn clone(&self) -> FileIntegrity
fn clone(&self) -> FileIntegrity
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 moreAuto Trait Implementations§
impl Freeze for FileIntegrity
impl RefUnwindSafe for FileIntegrity
impl Send for FileIntegrity
impl Sync for FileIntegrity
impl Unpin for FileIntegrity
impl UnsafeUnpin for FileIntegrity
impl UnwindSafe for FileIntegrity
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