pub struct Checksum {
pub algorithm: Algorithm,
pub value: String,
}
Expand description
Representation of SPDX’s Package Checksum and File Checksum. According to the spec, SHA1 is mandatory but we don’t currently enforce that.
Fields§
§algorithm: Algorithm
Algorithm used to calculate the checksum
value: String
The checksum value.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Checksum
impl<'de> Deserialize<'de> for Checksum
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
source§impl PartialEq<Checksum> for Checksum
impl PartialEq<Checksum> for Checksum
source§impl PartialOrd<Checksum> for Checksum
impl PartialOrd<Checksum> for Checksum
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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<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