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: StringThe Python package who license info is being annotated.
version: StringVersion 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: boolSpecial annotation indicating if the license is in the public domain.
Trait Implementations
impl Clone for PackageLicenseInfo[src]
impl Clone for PackageLicenseInfo[src]fn clone(&self) -> PackageLicenseInfo[src]
fn clone(&self) -> PackageLicenseInfo[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for PackageLicenseInfo[src]
impl Debug for PackageLicenseInfo[src]impl Default for PackageLicenseInfo[src]
impl Default for PackageLicenseInfo[src]fn default() -> PackageLicenseInfo[src]
fn default() -> PackageLicenseInfo[src]Returns the “default value” for a type. Read more
impl Ord for PackageLicenseInfo[src]
impl Ord for PackageLicenseInfo[src]impl PartialEq<PackageLicenseInfo> for PackageLicenseInfo[src]
impl PartialEq<PackageLicenseInfo> for PackageLicenseInfo[src]fn eq(&self, other: &PackageLicenseInfo) -> bool[src]
fn eq(&self, other: &PackageLicenseInfo) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &PackageLicenseInfo) -> bool[src]
fn ne(&self, other: &PackageLicenseInfo) -> bool[src]This method tests for !=.
impl PartialOrd<PackageLicenseInfo> for PackageLicenseInfo[src]
impl PartialOrd<PackageLicenseInfo> for PackageLicenseInfo[src]fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl TryInto<LicensedComponent> for PackageLicenseInfo[src]
impl TryInto<LicensedComponent> for PackageLicenseInfo[src]impl Eq for PackageLicenseInfo[src]
impl StructuralEq for PackageLicenseInfo[src]
impl StructuralPartialEq for PackageLicenseInfo[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more