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 more