[−][src]Enum rustsec::package::Checksum
Cryptographic checksum (SHA-256) for a package
Variants
SHA-256 digest of a package
Methods
impl Checksum
[src]
pub fn is_sha256(&self) -> bool
[src]
Is this checksum SHA-256?
pub fn as_sha256(&self) -> Option<[u8; 32]>
[src]
If this is a SHA-256 checksum, get the raw bytes
Trait Implementations
impl Clone for Checksum
[src]
impl Debug for Checksum
[src]
impl<'de> Deserialize<'de> for Checksum
[src]
fn deserialize<D>(
deserializer: D
) -> Result<Checksum, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<Checksum, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Display for Checksum
[src]
impl Eq for Checksum
[src]
impl From<[u8; 32]> for Checksum
[src]
impl FromStr for Checksum
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Checksum, Error>
[src]
impl Hash for Checksum
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl LowerHex for Checksum
[src]
impl Ord for Checksum
[src]
fn cmp(&self, other: &Checksum) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Checksum> for Checksum
[src]
impl PartialOrd<Checksum> for Checksum
[src]
fn partial_cmp(&self, other: &Checksum) -> Option<Ordering>
[src]
fn lt(&self, other: &Checksum) -> bool
[src]
fn le(&self, other: &Checksum) -> bool
[src]
fn gt(&self, other: &Checksum) -> bool
[src]
fn ge(&self, other: &Checksum) -> bool
[src]
impl Serialize for Checksum
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl StructuralEq for Checksum
[src]
impl StructuralPartialEq for Checksum
[src]
impl<'_> TryFrom<&'_ Value> for Checksum
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Checksum, Error>
[src]
impl UpperHex for Checksum
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,