Skip to main content

ScancodeLicense

Struct ScancodeLicense 

Source
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: String

Mandatory unique key: lower case ASCII characters, digits, underscore and dots.

§short_name: String

Commonly used short name, often abbreviated.

§name: String

Full name.

§category: Category

Permissive, 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_authors: Vec<String>§ignorable_urls: Vec<String>§ignorable_emails: Vec<String>§minimum_coverage: Option<i32>§standard_notice: Option<String>§language: Option<String>§text: String

Trait Implementations§

Source§

impl Debug for ScancodeLicense

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ScancodeLicense

Source§

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

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ScancodeLicense

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ScancodeLicense

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.