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<___E> Encode<Package<'static>, ___E> for Packagewhere
___E: Encoder + ?Sized + HandleEncoder,
impl<___E> Encode<Package<'static>, ___E> for Packagewhere
___E: Encoder + ?Sized + HandleEncoder,
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 UnsafeUnpin 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
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value 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]