pub struct License {Show 13 fields
pub name: String,
pub license_id: String,
pub see_also: Vec<String>,
pub is_osi_approved: bool,
pub is_fsf_libre: Option<bool>,
pub is_deprecated_license_id: bool,
pub reference: Option<String>,
pub details_url: Option<String>,
pub reference_number: Option<u32>,
pub license_text: Option<String>,
pub standard_license_template: Option<String>,
pub license_text_html: Option<String>,
pub cross_ref: Option<Vec<CrossRef>>,
}
Expand description
The License Object.
The License Object is a JSON object that contains the details of a license.
When the license is returned as part of a list of licenses, the following fields are present:
reference
detailsUrl
referenceNumber
When the license is returned as a single license, the following fields are present:
licenseText
standardLicenseTemplate
licenseTextHtml
crossRef
Fields§
§name: String
The license name.
license_id: String
The license ID.
see_also: Vec<String>
A list of URLs to other resources related to the license.
is_osi_approved: bool
Whether or not the license is OSI approved.
is_fsf_libre: Option<bool>
Whether or not the license is FSF libre.
is_deprecated_license_id: bool
Whether or not the license is deprecated.
reference: Option<String>
A reference to the license.
details_url: Option<String>
The URL to the license details.
reference_number: Option<u32>
The license reference number.
license_text: Option<String>
License text.
standard_license_template: Option<String>
Standard license template.
license_text_html: Option<String>
License text in HTML format.
cross_ref: Option<Vec<CrossRef>>
A list of cross references.
Trait Implementations§
source§impl<'de> Deserialize<'de> for License
impl<'de> Deserialize<'de> for License
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 License
impl PartialEq for License
impl StructuralPartialEq for License
Auto Trait Implementations§
impl RefUnwindSafe for License
impl Send for License
impl Sync for License
impl Unpin for License
impl UnwindSafe for License
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