pub struct ProjectLicense {
pub id: Option<String>,
pub name: Option<String>,
pub url: Option<Option<String>>,
}
Expand description
ProjectLicense : The license of the project
Fields§
§id: Option<String>
The SPDX license ID of a project
name: Option<String>
The long name of a license
url: Option<Option<String>>
The URL to this license
Implementations§
Source§impl ProjectLicense
impl ProjectLicense
Sourcepub fn new() -> ProjectLicense
pub fn new() -> ProjectLicense
The license of the project
Trait Implementations§
Source§impl Clone for ProjectLicense
impl Clone for ProjectLicense
Source§fn clone(&self) -> ProjectLicense
fn clone(&self) -> ProjectLicense
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 ProjectLicense
impl Debug for ProjectLicense
Source§impl Default for ProjectLicense
impl Default for ProjectLicense
Source§fn default() -> ProjectLicense
fn default() -> ProjectLicense
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProjectLicense
impl<'de> Deserialize<'de> for ProjectLicense
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 ProjectLicense
impl PartialEq for ProjectLicense
Source§impl Serialize for ProjectLicense
impl Serialize for ProjectLicense
impl StructuralPartialEq for ProjectLicense
Auto Trait Implementations§
impl Freeze for ProjectLicense
impl RefUnwindSafe for ProjectLicense
impl Send for ProjectLicense
impl Sync for ProjectLicense
impl Unpin for ProjectLicense
impl UnwindSafe for ProjectLicense
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