pub struct Package {
pub namespace: String,
pub name: String,
pub version: String,
pub primary_language: String,
pub license_expression: String,
pub declared_license: String,
pub dependencies: Vec<DependentPackage>,
}Expand description
A package object as represented by either data from one of its different types of package manifests or that of a package instance created from one or more of these package manifests, and files for that package.
Fields§
§namespace: StringOptional namespace for this package.
name: StringThe name of this package.
version: StringOptional version of this package.
primary_language: StringPrimary programming language
license_expression: StringThe license expression for this package typically derived from its declared license or from some other type-specific routine or convention.
declared_license: StringThe declared license mention, tag or text as found in a package manifest. This can be a string, a list or dict of strings possibly nested, as found originally in the manifest.
dependencies: Vec<DependentPackage>A list of DependentPackage for this 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>,
Deserialize this value from the given Serde deserializer. Read more
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
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