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,
}

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

impl Clone for PackageLicenseInfo[src]

impl Debug for PackageLicenseInfo[src]

impl Default for PackageLicenseInfo[src]

impl Eq for PackageLicenseInfo[src]

impl Ord for PackageLicenseInfo[src]

impl PartialEq<PackageLicenseInfo> for PackageLicenseInfo[src]

impl PartialOrd<PackageLicenseInfo> for PackageLicenseInfo[src]

impl StructuralEq for PackageLicenseInfo[src]

impl StructuralPartialEq for PackageLicenseInfo[src]

impl TryInto<LicensedComponent> for PackageLicenseInfo[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.