#[non_exhaustive]pub struct LockedChecksum {
pub algorithm: String,
pub value: String,
}Expand description
A declared checksum as recorded in a lock.
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 name as declared (for example SHA-256).
value: StringLowercase hex digest as declared.
Implementations§
Trait Implementations§
Source§impl Clone for LockedChecksum
impl Clone for LockedChecksum
Source§impl Debug for LockedChecksum
impl Debug for LockedChecksum
Source§impl<'de> Deserialize<'de> for LockedChecksum
impl<'de> Deserialize<'de> for LockedChecksum
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
impl Eq for LockedChecksum
Source§impl Ord for LockedChecksum
impl Ord for LockedChecksum
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LockedChecksum
impl PartialEq for LockedChecksum
Source§impl PartialOrd for LockedChecksum
impl PartialOrd for LockedChecksum
Source§impl Serialize for LockedChecksum
impl Serialize for LockedChecksum
impl StructuralPartialEq for LockedChecksum
Auto Trait Implementations§
impl Forget for LockedChecksum
impl Freeze for LockedChecksum
impl Move for LockedChecksum
impl RefUnwindSafe for LockedChecksum
impl Send for LockedChecksum
impl Sync for LockedChecksum
impl Unpin for LockedChecksum
impl UnsafeUnpin for LockedChecksum
impl UnwindSafe for LockedChecksum
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