Struct python_packaging::licensing::PackageLicenseInfo [−][src]
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, }
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.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PackageLicenseInfo
impl Send for PackageLicenseInfo
impl Sync for PackageLicenseInfo
impl Unpin for PackageLicenseInfo
impl UnwindSafe for PackageLicenseInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self