Struct google_api_proto::google::cloud::compute::v1::LicenseCode
source · pub struct LicenseCode {
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub id: Option<u64>,
pub kind: Option<String>,
pub license_alias: Vec<LicenseCodeLicenseAlias>,
pub name: Option<String>,
pub self_link: Option<String>,
pub state: Option<String>,
pub transferable: Option<bool>,
}
Expand description
Represents a License Code resource. A License Code is a unique identifier used to represent a license resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Fields§
§creation_timestamp: Option<String>
[Output Only] Creation timestamp in RFC3339 text format.
description: Option<String>
[Output Only] Description of this License Code.
id: Option<u64>
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>
[Output Only] Type of resource. Always compute#licenseCode for licenses.
license_alias: Vec<LicenseCodeLicenseAlias>
[Output Only] URL and description aliases of Licenses with the same License Code.
name: Option<String>
[Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
self_link: Option<String>
[Output Only] Server-defined URL for the resource.
state: Option<String>
[Output Only] Current state of this License Code. Check the State enum for the list of possible values.
transferable: Option<bool>
[Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
Implementations§
source§impl LicenseCode
impl LicenseCode
sourcepub fn transferable(&self) -> bool
pub fn transferable(&self) -> bool
Returns the value of transferable
, or the default value if transferable
is unset.
sourcepub fn creation_timestamp(&self) -> &str
pub fn creation_timestamp(&self) -> &str
Returns the value of creation_timestamp
, or the default value if creation_timestamp
is unset.
sourcepub fn state(&self) -> &str
pub fn state(&self) -> &str
Returns the value of state
, or the default value if state
is unset.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
Trait Implementations§
source§impl Clone for LicenseCode
impl Clone for LicenseCode
source§fn clone(&self) -> LicenseCode
fn clone(&self) -> LicenseCode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LicenseCode
impl Debug for LicenseCode
source§impl Default for LicenseCode
impl Default for LicenseCode
source§impl Message for LicenseCode
impl Message for LicenseCode
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for LicenseCode
impl PartialEq for LicenseCode
source§fn eq(&self, other: &LicenseCode) -> bool
fn eq(&self, other: &LicenseCode) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LicenseCode
Auto Trait Implementations§
impl Freeze for LicenseCode
impl RefUnwindSafe for LicenseCode
impl Send for LicenseCode
impl Sync for LicenseCode
impl Unpin for LicenseCode
impl UnwindSafe for LicenseCode
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request