pub struct PackageMeta {Show 14 fields
pub name: String,
pub version: String,
pub description: Option<String>,
pub homepage: Option<String>,
pub repository: Option<String>,
pub license: Option<String>,
pub binaries: Vec<String>,
pub keywords: Vec<String>,
pub maintainers: Vec<String>,
pub published: Option<String>,
pub downloads: Option<u64>,
pub archive_url: Option<String>,
pub checksum: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
Metadata about a package from an index.
This is the raw metadata extracted from a package manager’s index, before any correlation with packages from other ecosystems.
Fields§
§name: StringPackage name in this ecosystem.
version: StringLatest version string.
description: Option<String>Package description.
homepage: Option<String>Homepage URL.
repository: Option<String>Source repository URL (GitHub, GitLab, etc.).
license: Option<String>License identifier (SPDX when available).
binaries: Vec<String>Binary/executable names provided by this package.
keywords: Vec<String>Keywords/tags for the package.
maintainers: Vec<String>Maintainers/authors.
published: Option<String>When this version was published/released.
downloads: Option<u64>Download/popularity count (semantics vary by ecosystem).
archive_url: Option<String>Archive/download URL for this version.
checksum: Option<String>Checksum of the archive (format: “algo:hash”, e.g., “sha256:abc123”).
extra: HashMap<String, Value>Ecosystem-specific metadata that doesn’t fit normalized fields.
Trait Implementations§
Source§impl Clone for PackageMeta
impl Clone for PackageMeta
Source§fn clone(&self) -> PackageMeta
fn clone(&self) -> PackageMeta
Returns a duplicate 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 PackageMeta
impl Debug for PackageMeta
Source§impl Default for PackageMeta
impl Default for PackageMeta
Source§fn default() -> PackageMeta
fn default() -> PackageMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackageMeta
impl<'de> Deserialize<'de> for PackageMeta
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
Auto Trait Implementations§
impl Freeze for PackageMeta
impl RefUnwindSafe for PackageMeta
impl Send for PackageMeta
impl Sync for PackageMeta
impl Unpin for PackageMeta
impl UnwindSafe for PackageMeta
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more