pub struct PackageLicenseInfo {
pub package: String,
pub version: String,
pub metadata_licenses: Vec<String>,
pub classifier_licenses: Vec<String>,
pub license_texts: Vec<String>,
pub notice_texts: Vec<String>,
pub is_public_domain: bool,
pub homepage: Option<String>,
pub authors: Vec<String>,
}
Expand description
Defines license information for a Python package.
Fields§
§package: String
The Python package who license info is being annotated.
version: String
Version string of Python package being annotated.
metadata_licenses: Vec<String>
License
entries in package metadata.
classifier_licenses: Vec<String>
Licenses present in Classifier: License
entries in package metadata.
license_texts: Vec<String>
Texts of licenses present in the package.
notice_texts: Vec<String>
Texts of NOTICE files in the package.
is_public_domain: bool
Special annotation indicating if the license is in the public domain.
homepage: Option<String>
URL of project home.
List of author strings.
Trait Implementations§
Source§impl Clone for PackageLicenseInfo
impl Clone for PackageLicenseInfo
Source§fn clone(&self) -> PackageLicenseInfo
fn clone(&self) -> PackageLicenseInfo
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 PackageLicenseInfo
impl Debug for PackageLicenseInfo
Source§impl Default for PackageLicenseInfo
impl Default for PackageLicenseInfo
Source§fn default() -> PackageLicenseInfo
fn default() -> PackageLicenseInfo
Returns the “default value” for a type. Read more
Source§impl Ord for PackageLicenseInfo
impl Ord for PackageLicenseInfo
Source§impl PartialEq for PackageLicenseInfo
impl PartialEq for PackageLicenseInfo
Source§impl PartialOrd for PackageLicenseInfo
impl PartialOrd for PackageLicenseInfo
impl Eq for PackageLicenseInfo
impl StructuralPartialEq for PackageLicenseInfo
Auto Trait Implementations§
impl Freeze for PackageLicenseInfo
impl RefUnwindSafe for PackageLicenseInfo
impl Send for PackageLicenseInfo
impl Sync for PackageLicenseInfo
impl Unpin for PackageLicenseInfo
impl UnwindSafe for PackageLicenseInfo
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