#[non_exhaustive]pub struct ChecksumCheck {
pub algorithm: String,
pub expected: String,
pub actual: Option<String>,
pub supported: bool,
pub matched: Option<bool>,
pub weak: bool,
}Expand description
One checksum comparison.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.algorithm: StringAlgorithm wire name.
expected: StringExpected lowercase hex.
actual: Option<String>Computed lowercase hex when the algorithm is implemented.
supported: boolWhether the comparison could be performed.
matched: Option<bool>Whether a supported comparison matched.
weak: boolWhether the algorithm is weak (ChecksumAlgorithm::is_weak).
Trait Implementations§
Source§impl Clone for ChecksumCheck
impl Clone for ChecksumCheck
Source§impl Debug for ChecksumCheck
impl Debug for ChecksumCheck
impl Eq for ChecksumCheck
Source§impl PartialEq for ChecksumCheck
impl PartialEq for ChecksumCheck
impl StructuralPartialEq for ChecksumCheck
Auto Trait Implementations§
impl Forget for ChecksumCheck
impl Freeze for ChecksumCheck
impl RefUnwindSafe for ChecksumCheck
impl Send for ChecksumCheck
impl Sync for ChecksumCheck
impl Unpin for ChecksumCheck
impl UnsafeUnpin for ChecksumCheck
impl UnwindSafe for ChecksumCheck
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