pub struct PackageData {
pub package_type: Option<String>,
pub namespace: Option<String>,
pub name: Option<String>,
pub version: Option<String>,
pub homepage_url: Option<String>,
pub download_url: Option<String>,
pub copyright: Option<String>,
pub license_detections: Vec<LicenseDetection>,
pub dependencies: Vec<Dependency>,
pub parties: Vec<Party>,
pub purl: Option<String>,
}
Fields§
§package_type: Option<String>
§namespace: Option<String>
§name: Option<String>
§version: Option<String>
§homepage_url: Option<String>
§download_url: Option<String>
§copyright: Option<String>
§license_detections: Vec<LicenseDetection>
§dependencies: Vec<Dependency>
§parties: Vec<Party>
§purl: Option<String>
Implementations§
Source§impl PackageData
impl PackageData
Sourcepub fn get_license_expression(&self) -> Option<String>
pub fn get_license_expression(&self) -> Option<String>
Extracts a single license expression from all license detections in this package. Returns None if there are no license detections.
Trait Implementations§
Source§impl Clone for PackageData
impl Clone for PackageData
Source§fn clone(&self) -> PackageData
fn clone(&self) -> PackageData
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 PackageData
impl Debug for PackageData
Auto Trait Implementations§
impl Freeze for PackageData
impl RefUnwindSafe for PackageData
impl Send for PackageData
impl Sync for PackageData
impl Unpin for PackageData
impl UnwindSafe for PackageData
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