Struct spdx::LicenseReq [−][src]
pub struct LicenseReq {
pub license: LicenseItem,
pub exception: Option<ExceptionId>,
}
Expand description
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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
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
Mutably borrows from an owned value. Read more