[][src]Struct tough::Target

pub struct Target {
    pub custom: HashMap<String, Value>,
    pub sha256: Vec<u8>,
    pub length: u64,
}

A target from a repository.

Fields

custom: HashMap<String, Value>

Custom metadata for this target from the repository.

sha256: Vec<u8>

The SHA-256 checksum for this target.

length: u64

The maximum size in bytes for this target. This is an upper bound on size, and not necessarily the actual size.

Trait Implementations

impl From<Target> for Target[src]

impl Clone for Target[src]

impl Debug for Target[src]

Auto Trait Implementations

impl Send for Target

impl Sync for Target

impl Unpin for Target

impl UnwindSafe for Target

impl RefUnwindSafe for Target

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self