pub enum LicenseType {
Original,
Header,
Alternate,
}
Expand description
The type of a license entry (typically in a Store
).
Variants§
Original
The canonical text of the license.
Header
A license header. There may be more than one in a Store
.
Alternate
An alternate form of a license. This is intended to be used for alternate formats of a license, not for variants where the text has different meaning. Not currently used in askalono’s SPDX dataset.
Trait Implementations§
Source§impl Clone for LicenseType
impl Clone for LicenseType
Source§fn clone(&self) -> LicenseType
fn clone(&self) -> LicenseType
Returns a copy 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 Display for LicenseType
impl Display for LicenseType
Source§impl PartialEq for LicenseType
impl PartialEq for LicenseType
Source§impl Serialize for LicenseType
impl Serialize for LicenseType
impl Copy 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 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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more