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§impl Serialize for CustomLicense
impl Serialize for CustomLicense
impl StructuralPartialEq for CustomLicense
Auto Trait Implementations§
impl Freeze for CustomLicense
impl RefUnwindSafe for CustomLicense
impl Send for CustomLicense
impl Sync for CustomLicense
impl Unpin for CustomLicense
impl UnwindSafe for CustomLicense
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)