Struct python_packaging::licensing::PackageLicenseInfo
source · [−]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
sourceimpl Clone for PackageLicenseInfo
impl Clone for PackageLicenseInfo
sourcefn clone(&self) -> PackageLicenseInfo
fn clone(&self) -> PackageLicenseInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PackageLicenseInfo
impl Debug for PackageLicenseInfo
sourceimpl Default for PackageLicenseInfo
impl Default for PackageLicenseInfo
sourcefn default() -> PackageLicenseInfo
fn default() -> PackageLicenseInfo
Returns the “default value” for a type. Read more
sourceimpl Ord for PackageLicenseInfo
impl Ord for PackageLicenseInfo
sourceimpl PartialEq<PackageLicenseInfo> for PackageLicenseInfo
impl PartialEq<PackageLicenseInfo> for PackageLicenseInfo
sourcefn eq(&self, other: &PackageLicenseInfo) -> bool
fn eq(&self, other: &PackageLicenseInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PackageLicenseInfo) -> bool
fn ne(&self, other: &PackageLicenseInfo) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PackageLicenseInfo> for PackageLicenseInfo
impl PartialOrd<PackageLicenseInfo> for PackageLicenseInfo
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl TryInto<LicensedComponent> for PackageLicenseInfo
impl TryInto<LicensedComponent> for PackageLicenseInfo
impl Eq for PackageLicenseInfo
impl StructuralEq for PackageLicenseInfo
impl StructuralPartialEq for PackageLicenseInfo
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more