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,
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
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 moresourceimpl 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
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<PackageLicenseInfo> for PackageLicenseInfo
impl PartialEq<PackageLicenseInfo> for PackageLicenseInfo
sourcefn eq(&self, other: &PackageLicenseInfo) -> bool
fn eq(&self, other: &PackageLicenseInfo) -> bool
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>
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 moresourceimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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