pub struct Checksum {
pub valid_until: usize,
pub chk_type: String,
pub data: Vec<u8>,
pub valid: bool,
}
Expand description
Calculated checksum of the file
Fields§
§valid_until: usize
(crate-internal): how many bytes of the signature are valid, how many are padding
chk_type: String
Type of checksum (16 bytes long, ------------
, sha256----------
, etc.)
data: Vec<u8>
Data of the checksum bytes, 256 bytes long
valid: bool
Whether the checksum has been validated during WebC::parse
Trait Implementations§
source§impl PartialEq<Checksum> for Checksum
impl PartialEq<Checksum> for Checksum
impl Eq for Checksum
impl StructuralEq for Checksum
impl StructuralPartialEq for Checksum
Auto Trait Implementations§
impl RefUnwindSafe for Checksum
impl Send for Checksum
impl Sync for Checksum
impl Unpin for Checksum
impl UnwindSafe for Checksum
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.