#[non_exhaustive]pub enum License {
Show 13 variants
CCBY,
CCBYSA,
CCBYNC,
CCBYNCSA,
CC0,
MIT,
Apache2,
GPL,
LDC,
ResearchOnly,
Proprietary,
Unknown,
Other(String),
}Expand description
License type for dataset usage.
Important for determining redistribution rights and commercial usage restrictions.
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.
CCBY
Creative Commons Attribution
CCBYSA
Creative Commons Attribution-ShareAlike
CCBYNC
Creative Commons Attribution-NonCommercial
CCBYNCSA
Creative Commons Attribution-NonCommercial-ShareAlike
CC0
Creative Commons Zero (public domain)
MIT
MIT License
Apache2
Apache 2.0 License
GPL
GNU General Public License
LDC
Linguistic Data Consortium (requires membership)
ResearchOnly
Research-only license
Proprietary
Proprietary (restricted use; typically not redistributable)
Unknown
Unknown license
Other(String)
Other license with description
Implementations§
Source§impl License
impl License
Sourcepub fn allows_commercial(&self) -> bool
pub fn allows_commercial(&self) -> bool
Returns true if commercial use is allowed.
Sourcepub fn allows_redistribution(&self) -> bool
pub fn allows_redistribution(&self) -> bool
Returns true if the dataset can be freely redistributed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for License
impl<'de> Deserialize<'de> for License
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
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