pub struct LicenseBase {
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>,
}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.
Implementations§
Source§impl LicenseBase
impl LicenseBase
pub fn new() -> LicenseBase
Trait Implementations§
Source§impl Clone for LicenseBase
impl Clone for LicenseBase
Source§fn clone(&self) -> LicenseBase
fn clone(&self) -> LicenseBase
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 LicenseBase
impl Debug for LicenseBase
Source§impl Default for LicenseBase
impl Default for LicenseBase
Source§fn default() -> LicenseBase
fn default() -> LicenseBase
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LicenseBase
impl<'de> Deserialize<'de> for LicenseBase
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 LicenseBase
impl PartialEq for LicenseBase
Source§impl Serialize for LicenseBase
impl Serialize for LicenseBase
impl StructuralPartialEq for LicenseBase
Auto Trait Implementations§
impl Freeze for LicenseBase
impl RefUnwindSafe for LicenseBase
impl Send for LicenseBase
impl Sync for LicenseBase
impl Unpin for LicenseBase
impl UnwindSafe for LicenseBase
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