pub enum License {
MIT,
Apache2,
GPL2,
GPL3,
LGPL21,
BSD2,
BSD3,
ISC,
MPL2,
Proprietary,
Unknown,
}Expand description
Known open-source and proprietary license identifiers.
Variants§
MIT
MIT License
Apache2
Apache License 2.0
GPL2
GNU General Public License v2.0
GPL3
GNU General Public License v3.0
LGPL21
GNU Lesser General Public License v2.1
BSD2
BSD 2-Clause “Simplified” License
BSD3
BSD 3-Clause “New” or “Revised” License
ISC
ISC License
MPL2
Mozilla Public License 2.0
Proprietary
Proprietary / closed-source
Unknown
License could not be determined
Implementations§
Source§impl License
impl License
Sourcepub fn is_copyleft(self) -> bool
pub fn is_copyleft(self) -> bool
Return whether this license is copyleft (restricts derivative works).
Sourcepub fn is_permissive(self) -> bool
pub fn is_permissive(self) -> bool
Return whether this license is permissive.
Trait Implementations§
impl Copy for License
impl Eq for License
impl StructuralPartialEq for License
Auto Trait Implementations§
impl Freeze for License
impl RefUnwindSafe for License
impl Send for License
impl Sync for License
impl Unpin for License
impl UnwindSafe for License
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)