pub struct Package {
pub id: String,
pub name: String,
pub version: Version,
pub source: PackageSource,
pub kind: PackageKind,
pub description: Option<String>,
pub homepage: Option<String>,
pub license: Option<String>,
pub publisher: Option<String>,
pub installers: Vec<Installer>,
pub dependencies: Vec<Dependency>,
}Expand description
Canonical package aggregate used by catalog, search, and install flows.
Fields§
§id: StringStable package identifier in canonical catalog id form.
name: StringHuman-readable display name.
version: VersionParsed semantic version.
source: PackageSourceThe source that produced the record.
kind: PackageKindWhether the record represents a catalog item or installed snapshot.
description: Option<String>Short summary or description text, when available.
homepage: Option<String>Product homepage URL, when provided.
license: Option<String>License string reported by the source.
publisher: Option<String>Publisher or maintainer string.
installers: Vec<Installer>Resolved installer candidates associated with the package.
dependencies: Vec<Dependency>Declared dependencies for the package.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Package
impl<'de> Deserialize<'de> for Package
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 From<&Package> for CatalogPackage
impl From<&Package> for CatalogPackage
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