Struct wasm_metadata::CustomLicense
source · pub struct CustomLicense {
pub id: String,
pub name: String,
pub text: String,
pub reference: Option<String>,
}
Fields§
§id: String
License Identifier Provides a locally unique identifier to refer to licenses that are not found on the SPDX License List. https://spdx.github.io/spdx-spec/v2.3/other-licensing-information-detected/#101-license-identifier-field
name: String
License Name Provide a common name of the license that is not on the SPDX list. https://spdx.github.io/spdx-spec/v2.3/other-licensing-information-detected/#103-license-name-field
text: String
Extracted Text Provides a copy of the actual text of the license reference extracted from the package or file that is associated with the License Identifier to aid in future analysis. https://spdx.github.io/spdx-spec/v2.3/other-licensing-information-detected/#102-extracted-text-field
reference: Option<String>
License Cross Reference Provides a pointer to the official source of a license that is not included in the SPDX License List, that is referenced by the License Identifier. https://spdx.github.io/spdx-spec/v2.3/other-licensing-information-detected/#104-license-cross-reference-field
Trait Implementations§
source§impl Clone for CustomLicense
impl Clone for CustomLicense
source§fn clone(&self) -> CustomLicense
fn clone(&self) -> CustomLicense
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomLicense
impl Debug for CustomLicense
source§impl Default for CustomLicense
impl Default for CustomLicense
source§fn default() -> CustomLicense
fn default() -> CustomLicense
source§impl<'de> Deserialize<'de> for CustomLicense
impl<'de> Deserialize<'de> for CustomLicense
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>,
source§impl Display for CustomLicense
impl Display for CustomLicense
source§impl PartialEq for CustomLicense
impl PartialEq for CustomLicense
source§fn eq(&self, other: &CustomLicense) -> bool
fn eq(&self, other: &CustomLicense) -> bool
self
and other
values to be equal, and is used
by ==
.