[][src]Struct spdx::LicenseReq

pub struct LicenseReq {
    pub license: LicenseItem,
    pub exception: Option<ExceptionId>,
}

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]

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]

impl PartialEq<LicenseReq> for Licensee[src]

impl PartialEq<LicenseReq> for LicenseReq[src]

impl PartialOrd<LicenseReq> for Licensee[src]

impl PartialOrd<LicenseReq> for LicenseReq[src]

impl StructuralEq for LicenseReq[src]

impl StructuralPartialEq for LicenseReq[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.