[−][src]Enum oceanpkg::drop::license::AnyLicense
Any license, known or otherwise.
Variants
Known(License)
A license known to Ocean.
This means information such as OSI approval and "libre"-ness can be checked.
A license unknown to Ocean. This is generally treated as an opaque ID.
Methods
impl<'a> AnyLicense<'a>
[src]
pub fn owned<S>(s: S) -> Self where
S: Into<String> + AsRef<str>,
[src]
S: Into<String> + AsRef<str>,
Creates an instance from s
where any external reference in s
is not
kept.
pub fn id(&self) -> &str
[src]
Returns the license's identifier by reference.
pub fn is_known(&self) -> bool
[src]
Returns whether the license is known to Ocean.
Trait Implementations
impl<'a> Clone for AnyLicense<'a>
[src]
fn clone(&self) -> AnyLicense<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for AnyLicense<'a>
[src]
impl<'de: 'a, 'a> Deserialize<'de> for AnyLicense<'a>
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl<'_> Display for AnyLicense<'_>
[src]
impl<'a> Eq for AnyLicense<'a>
[src]
impl<'a> From<&'a str> for AnyLicense<'a>
[src]
impl<'a> From<Cow<'a, str>> for AnyLicense<'a>
[src]
impl<'_> From<License> for AnyLicense<'_>
[src]
impl<'_> From<SpdxLicense> for AnyLicense<'_>
[src]
fn from(spdx: SpdxLicense) -> Self
[src]
impl<'_> From<String> for AnyLicense<'_>
[src]
impl<'a> Hash for AnyLicense<'a>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> PartialEq<AnyLicense<'a>> for AnyLicense<'a>
[src]
fn eq(&self, other: &AnyLicense<'a>) -> bool
[src]
fn ne(&self, other: &AnyLicense<'a>) -> bool
[src]
impl<'_> Serialize for AnyLicense<'_>
[src]
impl<'a> StructuralEq for AnyLicense<'a>
[src]
impl<'a> StructuralPartialEq for AnyLicense<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for AnyLicense<'a>
impl<'a> Send for AnyLicense<'a>
impl<'a> Sync for AnyLicense<'a>
impl<'a> Unpin for AnyLicense<'a>
impl<'a> UnwindSafe for AnyLicense<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,