Enum python_packaging::licensing::LicenseFlavor
source · [−]pub enum LicenseFlavor {
None,
Spdx(Expression),
OtherExpression(Expression),
PublicDomain,
Unknown(Vec<String>),
}Expand description
The type of a license.
Variants
None
No explicit licensing defined.
Spdx(Expression)
An SPDX license expression.
OtherExpression(Expression)
An SPDX expression that contain unknown license identifiers.
PublicDomain
License is in the public domain.
Unknown(Vec<String>)
Unknown licensing type with available string identifiers.
Trait Implementations
sourceimpl Clone for LicenseFlavor
impl Clone for LicenseFlavor
sourcefn clone(&self) -> LicenseFlavor
fn clone(&self) -> LicenseFlavor
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 LicenseFlavor
impl Debug for LicenseFlavor
sourceimpl PartialEq<LicenseFlavor> for LicenseFlavor
impl PartialEq<LicenseFlavor> for LicenseFlavor
sourcefn eq(&self, other: &LicenseFlavor) -> bool
fn eq(&self, other: &LicenseFlavor) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &LicenseFlavor) -> bool
fn ne(&self, other: &LicenseFlavor) -> bool
This method tests for !=.
impl StructuralPartialEq for LicenseFlavor
Auto Trait Implementations
impl RefUnwindSafe for LicenseFlavor
impl Send for LicenseFlavor
impl Sync for LicenseFlavor
impl Unpin for LicenseFlavor
impl UnwindSafe for LicenseFlavor
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