pub enum LicenseItem {
Spdx {
id: LicenseId,
or_later: bool,
},
Other {
doc_ref: Option<String>,
lic_ref: String,
},
}
Expand description
A single license term in a license expression, according to the SPDX spec.
This can be either an SPDX license, which is mapped to a LicenseId
from
a valid SPDX short identifier, or else a document AND/OR license ref
Variants§
Spdx
A regular SPDX license id
Fields
Other
Implementations§
Trait Implementations§
source§impl Clone for LicenseItem
impl Clone for LicenseItem
source§fn clone(&self) -> LicenseItem
fn clone(&self) -> LicenseItem
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 LicenseItem
impl Debug for LicenseItem
source§impl Display for LicenseItem
impl Display for LicenseItem
source§impl Ord for LicenseItem
impl Ord for LicenseItem
source§impl PartialEq for LicenseItem
impl PartialEq for LicenseItem
source§impl PartialOrd for LicenseItem
impl PartialOrd for LicenseItem
impl Eq for LicenseItem
Auto Trait Implementations§
impl Freeze for LicenseItem
impl RefUnwindSafe for LicenseItem
impl Send for LicenseItem
impl Sync for LicenseItem
impl Unpin for LicenseItem
impl UnwindSafe for LicenseItem
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)