pub struct Package {
pub url: Option<String>,
pub directory: Option<ClientEnd<Channel, Directory>>,
}
Expand description
A package is a signed collection of immutable files.
This object provides access to a package’s content and relevant metadata.
Fields§
§url: Option<String>
§directory: Option<ClientEnd<Channel, Directory>>
Trait Implementations§
Source§impl Encodable for Package
impl Encodable for Package
Source§type Encoded = WirePackage
type Encoded = WirePackage
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl TakeFrom<WirePackage> for Package
impl TakeFrom<WirePackage> for Package
Source§fn take_from(from: &WirePackage) -> Self
fn take_from(from: &WirePackage) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
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