pub struct LicenseEntry {
pub name: String,
pub compatibility: HashMap<String, CompatibilityEntry>,
pub spdx_license_key: Option<String>,
}Fields§
§name: String§compatibility: HashMap<String, CompatibilityEntry>§spdx_license_key: Option<String>Implementations§
Source§impl LicenseEntry
impl LicenseEntry
pub fn check_compatibility(&self, other: &LicenseEntry) -> CompatibilityStatus
pub fn get_all(&self, keys: &Vec<&str>) -> Vec<Option<&CompatibilityEntry>>
Trait Implementations§
Source§impl Clone for LicenseEntry
impl Clone for LicenseEntry
Source§fn clone(&self) -> LicenseEntry
fn clone(&self) -> LicenseEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LicenseEntry
impl Debug for LicenseEntry
Source§impl<'de> Deserialize<'de> for LicenseEntry
impl<'de> Deserialize<'de> for LicenseEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LicenseEntry
impl RefUnwindSafe for LicenseEntry
impl Send for LicenseEntry
impl Sync for LicenseEntry
impl Unpin for LicenseEntry
impl UnsafeUnpin for LicenseEntry
impl UnwindSafe for LicenseEntry
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