[][src]Struct homebins::Checksums

pub struct Checksums {
    pub b2: Option<Vec<u8>>,
    pub sha512: Option<Vec<u8>>,
    pub sha256: Option<Vec<u8>>,
    pub sha1: Option<Vec<u8>>,
}

Checksums for validation of downloads.

Fields

b2: Option<Vec<u8>>

A Blake2 checksum.

sha512: Option<Vec<u8>>

A SHA512 checksum.

sha256: Option<Vec<u8>>

A SHA256 checksum.

sha1: Option<Vec<u8>>

A SHA1 checksum.

Implementations

impl Checksums[src]

pub fn is_empty(&self) -> bool[src]

Whether these checksums are empty.

Trait Implementations

impl Debug for Checksums[src]

impl Default for Checksums[src]

impl<'de> Deserialize<'de> for Checksums[src]

impl PartialEq<Checksums> for Checksums[src]

impl StructuralPartialEq for Checksums[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,