pub struct Payload {
pub filename: PathBuf,
pub sha256: Sha256,
pub url: String,
pub size: u64,
pub install_size: Option<u64>,
pub kind: PayloadKind,
pub target_arch: Option<Arch>,
pub variant: Option<Variant>,
}Fields§
§filename: PathBufThe “suggested” filename for the payload when stored on disk
sha256: Sha256The sha-256 checksum of the payload
url: StringThe url from which to acquire the payload
size: u64The total download size
install_size: Option<u64>If a package has a single payload, this will be set to the actual size it will be on disk when decompressed
kind: PayloadKindThe kind of the payload, which determines how we un/pack it
target_arch: Option<Arch>Specific architecture this payload targets
variant: Option<Variant>Specific variant this payload targets
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more