pub enum Algorithm {
Show 17 variants
SHA1,
SHA224,
SHA256,
SHA384,
SHA512,
MD2,
MD4,
MD5,
MD6,
SHA3256,
SHA3384,
SHA3512,
BLAKE2B256,
BLAKE2B384,
BLAKE2B512,
BLAKE3,
ADLER32,
}
Expand description
Possible algorithms to be used for SPDX’s package checksum and file checksum.
Variants§
SHA1
SHA224
SHA256
SHA384
SHA512
MD2
MD4
MD5
MD6
SHA3256
SHA3384
SHA3512
BLAKE2B256
BLAKE2B384
BLAKE2B512
BLAKE3
ADLER32
Trait Implementations§
source§impl<'de> Deserialize<'de> for Algorithm
impl<'de> Deserialize<'de> for Algorithm
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<Algorithm> for Algorithm
impl PartialEq<Algorithm> for Algorithm
source§impl PartialOrd<Algorithm> for Algorithm
impl PartialOrd<Algorithm> for Algorithm
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 Copy for Algorithm
impl Eq for Algorithm
impl StructuralEq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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