pub enum LicenseType {
MIT,
Apache2,
GPL2,
GPL3,
BSD,
ISC,
MPL2,
Custom(String),
Unknown,
}Expand description
License type for compliance checking
Variants§
Implementations§
Source§impl LicenseType
impl LicenseType
pub fn from_spdx(spdx_id: &str) -> Self
pub fn is_permissive(&self) -> bool
pub fn is_copyleft(&self) -> bool
Trait Implementations§
Source§impl Clone for LicenseType
impl Clone for LicenseType
Source§fn clone(&self) -> LicenseType
fn clone(&self) -> LicenseType
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 LicenseType
impl Debug for LicenseType
Source§impl<'de> Deserialize<'de> for LicenseType
impl<'de> Deserialize<'de> for LicenseType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LicenseType
impl PartialEq for LicenseType
Source§impl Serialize for LicenseType
impl Serialize for LicenseType
impl Eq for LicenseType
impl StructuralPartialEq for LicenseType
Auto Trait Implementations§
impl Freeze for LicenseType
impl RefUnwindSafe for LicenseType
impl Send for LicenseType
impl Sync for LicenseType
impl Unpin for LicenseType
impl UnsafeUnpin for LicenseType
impl UnwindSafe for LicenseType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.