Enum two_face::acknowledgement::LicenseType
source · #[non_exhaustive]pub enum LicenseType {
Sublime,
Mit,
Bsd2Clause,
Bsd2ClauseFreeBsd,
Unlicense,
Bsd3Clause,
Apache2,
Wtfpl,
}
Expand description
The full range of included licenses
Disclaimer: I am not a lawyer
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sublime
Sublime’s custom license
Mit
Bsd2Clause
Bsd2ClauseFreeBsd
Unlicense
Bsd3Clause
Apache2
Wtfpl
Implementations§
source§impl LicenseType
impl LicenseType
sourcepub fn needs_acknowledgement(&self) -> bool
pub fn needs_acknowledgement(&self) -> bool
Whether or not the license requires acknowledgement
use two_face::acknowledgement::LicenseType;
assert!(LicenseType::Mit.needs_acknowledgement());
assert!(!LicenseType::Wtfpl.needs_acknowledgement());
Trait Implementations§
source§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
Auto Trait Implementations§
impl Freeze for LicenseType
impl RefUnwindSafe for LicenseType
impl Send for LicenseType
impl Sync for LicenseType
impl Unpin 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