pub enum License {
Mit,
ApacheV2,
Bsd3Clause,
Lgpl21OrLater,
PublicDomain,
Other,
}Expand description
The specific license under which a tool (or its weights) is released.
Coarser than this is LicenseCategory; this is what a link to the
license’s own official text is built from – see License::official_url.
Variants§
Mit
ApacheV2
Bsd3Clause
Lgpl21OrLater
PublicDomain
Other
A non-standard, tool-specific, or otherwise unlisted license: no
fixed official page exists for it, so [CatalogEntry::license_url]
carries the link instead, if one is known.
Implementations§
Source§impl License
impl License
pub fn category(self) -> LicenseCategory
Sourcepub const fn official_url(self) -> Option<&'static str>
pub const fn official_url(self) -> Option<&'static str>
The license’s own official page, where a single fixed one exists for
every license of this kind. None for License::Other: use
[CatalogEntry::license_url] for a tool-specific override instead.
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 UnsafeUnpin for License
impl UnwindSafe for License
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