pub struct LicenseWithRules {
pub id: Option<String>,
pub type: Option<String>,
pub is_spdx: Option<bool>,
pub name: Option<String>,
pub url: Option<String>,
pub description: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub license_rules: Option<Vec<LicenseRule>>,
}Fields§
§id: Option<String>Unique identifier for the license.
type: Option<String>The type of license.
is_spdx: Option<bool>true if license id spdx.
name: Option<String>The user facing name of the license.
url: Option<String>A URL where to find the license for the feed.
description: Option<String>The description of the license.
created_at: Option<String>The date and time the license was added to the database, in ISO 8601 date-time format.
updated_at: Option<String>The last date and time the license was updated in the database, in ISO 8601 date-time format.
license_rules: Option<Vec<LicenseRule>>Implementations§
Source§impl LicenseWithRules
impl LicenseWithRules
pub fn new() -> LicenseWithRules
Trait Implementations§
Source§impl Clone for LicenseWithRules
impl Clone for LicenseWithRules
Source§fn clone(&self) -> LicenseWithRules
fn clone(&self) -> LicenseWithRules
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LicenseWithRules
impl Debug for LicenseWithRules
Source§impl Default for LicenseWithRules
impl Default for LicenseWithRules
Source§fn default() -> LicenseWithRules
fn default() -> LicenseWithRules
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LicenseWithRules
impl<'de> Deserialize<'de> for LicenseWithRules
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 LicenseWithRules
impl PartialEq for LicenseWithRules
Source§impl Serialize for LicenseWithRules
impl Serialize for LicenseWithRules
impl StructuralPartialEq for LicenseWithRules
Auto Trait Implementations§
impl Freeze for LicenseWithRules
impl RefUnwindSafe for LicenseWithRules
impl Send for LicenseWithRules
impl Sync for LicenseWithRules
impl Unpin for LicenseWithRules
impl UnwindSafe for LicenseWithRules
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