[−][src]Struct spdx::LicenseReq
Represents a single license requirement, which must include a valid LicenseItem, and may allow current and future versions of the license, and may also allow for a specific exception
While they can be constructed manually, most of the time these will
be parsed and combined in an Expression
Fields
license: LicenseItem
The license
exception: Option<ExceptionId>
The exception allowed for this license, as specified following
the WITH
operator
Trait Implementations
impl Clone for LicenseReq
[src]
fn clone(&self) -> LicenseReq
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LicenseReq
[src]
impl Display for LicenseReq
[src]
impl Eq for LicenseReq
[src]
impl From<LicenseId> for LicenseReq
[src]
impl Ord for LicenseReq
[src]
fn cmp(&self, other: &LicenseReq) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<LicenseReq> for Licensee
[src]
impl PartialEq<LicenseReq> for LicenseReq
[src]
fn eq(&self, other: &LicenseReq) -> bool
[src]
fn ne(&self, other: &LicenseReq) -> bool
[src]
impl PartialOrd<LicenseReq> for Licensee
[src]
fn partial_cmp(&self, o: &LicenseReq) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<LicenseReq> for LicenseReq
[src]
fn partial_cmp(&self, other: &LicenseReq) -> Option<Ordering>
[src]
fn lt(&self, other: &LicenseReq) -> bool
[src]
fn le(&self, other: &LicenseReq) -> bool
[src]
fn gt(&self, other: &LicenseReq) -> bool
[src]
fn ge(&self, other: &LicenseReq) -> bool
[src]
impl StructuralEq for LicenseReq
[src]
impl StructuralPartialEq for LicenseReq
[src]
Auto Trait Implementations
impl RefUnwindSafe for LicenseReq
impl Send for LicenseReq
impl Sync for LicenseReq
impl Unpin for LicenseReq
impl UnwindSafe for LicenseReq
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> 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 = Infallible
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>,