pub struct Package {
pub url: Option<String>,
pub directory: Option<ClientEnd<Directory, Channel>>,
}
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<Directory, Channel>>
Trait Implementations§
Source§impl CompatFrom<Package> for Package
impl CompatFrom<Package> for Package
Source§fn compat_from(value: Package) -> Self
fn compat_from(value: Package) -> Self
Converts
value
into a value of this type.Source§impl CompatFrom<Package> for Package
impl CompatFrom<Package> for Package
Source§fn compat_from(value: Package) -> Self
fn compat_from(value: Package) -> Self
Converts
value
into a value of this type.Source§impl Encodable for Package
impl Encodable for Package
Source§type Encoded = WirePackage<'static>
type Encoded = WirePackage<'static>
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
Whether the conversion from
Self
to Self::Encoded
is equivalent to copying the raw bytes
of Self
. Read moreSource§impl<'de> FromWire<WirePackage<'de>> for Package
impl<'de> FromWire<WirePackage<'de>> for Package
Source§fn from_wire(wire_: WirePackage<'de>) -> Self
fn from_wire(wire_: WirePackage<'de>) -> Self
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
impl StructuralPartialEq for Package
Auto 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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire
to an option of this type.§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T
to [Self
]