#[non_exhaustive]pub struct LicenseCodeLicenseAlias {
pub description: Option<String>,
pub self_link: Option<String>,
/* private fields */
}Available on crate feature
license-codes only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.description: Option<String>Output only. [Output Only] Description of this License Code.
self_link: Option<String>Output only. [Output Only] URL of license corresponding to this License Code.
Implementations§
Source§impl LicenseCodeLicenseAlias
impl LicenseCodeLicenseAlias
pub fn new() -> Self
Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sets the value of description.
§Example
ⓘ
let x = LicenseCodeLicenseAlias::new().set_description("example");Sourcepub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of description.
§Example
ⓘ
let x = LicenseCodeLicenseAlias::new().set_or_clear_description(Some("example"));
let x = LicenseCodeLicenseAlias::new().set_or_clear_description(None::<String>);Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for LicenseCodeLicenseAlias
impl Clone for LicenseCodeLicenseAlias
Source§fn clone(&self) -> LicenseCodeLicenseAlias
fn clone(&self) -> LicenseCodeLicenseAlias
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 LicenseCodeLicenseAlias
impl Debug for LicenseCodeLicenseAlias
Source§impl Default for LicenseCodeLicenseAlias
impl Default for LicenseCodeLicenseAlias
Source§fn default() -> LicenseCodeLicenseAlias
fn default() -> LicenseCodeLicenseAlias
Returns the “default value” for a type. Read more
Source§impl Message for LicenseCodeLicenseAlias
impl Message for LicenseCodeLicenseAlias
Source§impl PartialEq for LicenseCodeLicenseAlias
impl PartialEq for LicenseCodeLicenseAlias
impl StructuralPartialEq for LicenseCodeLicenseAlias
Auto Trait Implementations§
impl Freeze for LicenseCodeLicenseAlias
impl RefUnwindSafe for LicenseCodeLicenseAlias
impl Send for LicenseCodeLicenseAlias
impl Sync for LicenseCodeLicenseAlias
impl Unpin for LicenseCodeLicenseAlias
impl UnwindSafe for LicenseCodeLicenseAlias
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