pub struct ScancodeLicense {Show 25 fields
pub key: String,
pub short_name: String,
pub name: String,
pub category: Category,
pub owner: String,
pub homepage_url: Option<String>,
pub notes: Option<String>,
pub is_deprecated: bool,
pub spdx_license_key: Option<String>,
pub text_urls: Vec<String>,
pub osi_url: Option<String>,
pub osi_license_key: Option<String>,
pub faq_url: Option<String>,
pub other_urls: Vec<String>,
pub is_exception: bool,
pub other_spdx_license_keys: Vec<String>,
pub ignorable_copyrights: Vec<String>,
pub ignorable_holders: Vec<String>,
pub ignorable_authors: Vec<String>,
pub ignorable_urls: Vec<String>,
pub ignorable_emails: Vec<String>,
pub minimum_coverage: Option<i32>,
pub standard_notice: Option<String>,
pub language: Option<String>,
pub text: String,
}Expand description
License from ScanCode.
Fields§
§key: StringMandatory unique key: lower case ASCII characters, digits, underscore and dots.
short_name: StringCommonly used short name, often abbreviated.
name: StringFull name.
category: CategoryPermissive, Copyleft, etc.
owner: String§homepage_url: Option<String>§notes: Option<String>§is_deprecated: bool§spdx_license_key: Option<String>SPDX key for SPDX licenses
text_urls: Vec<String>§osi_url: Option<String>§osi_license_key: Option<String>§faq_url: Option<String>§other_urls: Vec<String>§is_exception: bool§other_spdx_license_keys: Vec<String>§ignorable_copyrights: Vec<String>§ignorable_holders: Vec<String>§ignorable_urls: Vec<String>§ignorable_emails: Vec<String>§minimum_coverage: Option<i32>§standard_notice: Option<String>§language: Option<String>§text: StringTrait Implementations§
Source§impl Debug for ScancodeLicense
impl Debug for ScancodeLicense
Source§impl<'de> Deserialize<'de> for ScancodeLicense
impl<'de> Deserialize<'de> for ScancodeLicense
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
Source§impl PartialEq for ScancodeLicense
impl PartialEq for ScancodeLicense
Source§impl Serialize for ScancodeLicense
impl Serialize for ScancodeLicense
impl StructuralPartialEq for ScancodeLicense
Auto Trait Implementations§
impl Freeze for ScancodeLicense
impl RefUnwindSafe for ScancodeLicense
impl Send for ScancodeLicense
impl Sync for ScancodeLicense
impl Unpin for ScancodeLicense
impl UnsafeUnpin for ScancodeLicense
impl UnwindSafe for ScancodeLicense
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