pub enum PackageKind {
Binary,
Unknown(String),
}
Expand description
Packages have a PackageKind
, which describes the contents being distributed.
This is used by installers and updaters to determine what the installation strategy should be for a specific type of package. For example, binaries need to be placed into the PATH, but libraries may need to be installed in a target-specific way.
Variants§
Binary
An executable binary package, “bin”.
Unknown(String)
Anything we don’t recognize. This is here to prevent breaking changes if the registry adds new package kinds and not all clients are updated.
Trait Implementations§
Source§impl Clone for PackageKind
impl Clone for PackageKind
Source§fn clone(&self) -> PackageKind
fn clone(&self) -> PackageKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PackageKind
impl Debug for PackageKind
Source§impl<'de> Deserialize<'de> for PackageKind
impl<'de> Deserialize<'de> for PackageKind
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PackageKind
impl PartialEq for PackageKind
Source§impl Serialize for PackageKind
impl Serialize for PackageKind
impl Eq for PackageKind
impl StructuralPartialEq for PackageKind
Auto Trait Implementations§
impl Freeze for PackageKind
impl RefUnwindSafe for PackageKind
impl Send for PackageKind
impl Sync for PackageKind
impl Unpin for PackageKind
impl UnwindSafe for PackageKind
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