pub enum LicenseCategory {
Permissive,
WeakCopyleft,
StrongCopyleft,
Unknown,
}Expand description
SPDX license classification for compliance checking.
Variants§
Permissive
Permissive (MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, Unlicense, etc.)
WeakCopyleft
Weak copyleft (LGPL-2.1, LGPL-3.0, MPL-2.0, EPL-2.0)
StrongCopyleft
Strong copyleft (GPL-2.0, GPL-3.0, AGPL-3.0, SSPL-1.0, EUPL-1.2)
Unknown
Unknown/unrecognized license
Trait Implementations§
Source§impl Clone for LicenseCategory
impl Clone for LicenseCategory
Source§fn clone(&self) -> LicenseCategory
fn clone(&self) -> LicenseCategory
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LicenseCategory
impl Debug for LicenseCategory
Source§impl PartialEq for LicenseCategory
impl PartialEq for LicenseCategory
impl Copy for LicenseCategory
impl Eq for LicenseCategory
impl StructuralPartialEq for LicenseCategory
Auto Trait Implementations§
impl Freeze for LicenseCategory
impl RefUnwindSafe for LicenseCategory
impl Send for LicenseCategory
impl Sync for LicenseCategory
impl Unpin for LicenseCategory
impl UnsafeUnpin for LicenseCategory
impl UnwindSafe for LicenseCategory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more