pub struct Package {
pub architecture: Option<String>,
pub cpe_uri: Option<String>,
pub description: Option<String>,
pub digest: Option<Vec<Digest>>,
pub distribution: Option<Vec<Distribution>>,
pub license: Option<License>,
pub maintainer: Option<String>,
pub name: Option<String>,
pub package_type: Option<String>,
pub url: Option<String>,
pub version: Option<Version>,
}
Expand description
Package represents a particular package version.
This type is not used in any activity, and only used as part of another schema.
Fields§
§architecture: Option<String>
The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.
cpe_uri: Option<String>
The cpe_uri in CPE format denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.
description: Option<String>
The description of this package.
digest: Option<Vec<Digest>>
Hash value, typically a file digest, that allows unique identification a specific package.
distribution: Option<Vec<Distribution>>
The various channels by which a package is distributed.
license: Option<License>
Licenses that have been declared by the authors of the package.
maintainer: Option<String>
A freeform text denoting the maintainer of this package.
name: Option<String>
Required. Immutable. The name of the package.
package_type: Option<String>
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
url: Option<String>
The homepage for this package.
version: Option<Version>
The version of the package.
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>,
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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