Struct google_api_proto::google::cloud::compute::v1::AcceleratorType
source · pub struct AcceleratorType {
pub creation_timestamp: Option<String>,
pub deprecated: Option<DeprecationStatus>,
pub description: Option<String>,
pub id: Option<u64>,
pub kind: Option<String>,
pub maximum_cards_per_instance: Option<i32>,
pub name: Option<String>,
pub self_link: Option<String>,
pub zone: Option<String>,
}
Expand description
Represents an Accelerator Type resource. Google Cloud Platform provides graphics processing units (accelerators) that you can add to VM instances to improve or accelerate performance when working with intensive workloads. For more information, read GPUs on Compute Engine.
Fields§
§creation_timestamp: Option<String>
[Output Only] Creation timestamp in RFC3339 text format.
deprecated: Option<DeprecationStatus>
[Output Only] The deprecation status associated with this accelerator type.
description: Option<String>
[Output Only] An optional textual description of the resource.
id: Option<u64>
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>
[Output Only] The type of the resource. Always compute#acceleratorType for accelerator types.
maximum_cards_per_instance: Option<i32>
[Output Only] Maximum number of accelerator cards allowed per instance.
name: Option<String>
[Output Only] Name of the resource.
self_link: Option<String>
[Output Only] Server-defined, fully qualified URL for this resource.
zone: Option<String>
[Output Only] The name of the zone where the accelerator type resides, such as us-central1-a. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
Implementations§
source§impl AcceleratorType
impl AcceleratorType
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 maximum_cards_per_instance(&self) -> i32
pub fn maximum_cards_per_instance(&self) -> i32
Returns the value of maximum_cards_per_instance
, or the default value if maximum_cards_per_instance
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 AcceleratorType
impl Clone for AcceleratorType
source§fn clone(&self) -> AcceleratorType
fn clone(&self) -> AcceleratorType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AcceleratorType
impl Debug for AcceleratorType
source§impl Default for AcceleratorType
impl Default for AcceleratorType
source§impl Message for AcceleratorType
impl Message for AcceleratorType
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for AcceleratorType
impl PartialEq for AcceleratorType
source§fn eq(&self, other: &AcceleratorType) -> bool
fn eq(&self, other: &AcceleratorType) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AcceleratorType
Auto Trait Implementations§
impl Freeze for AcceleratorType
impl RefUnwindSafe for AcceleratorType
impl Send for AcceleratorType
impl Sync for AcceleratorType
impl Unpin for AcceleratorType
impl UnwindSafe for AcceleratorType
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