Struct google_compute1::api::AcceleratorConfig
source · pub struct AcceleratorConfig {
pub accelerator_count: Option<i32>,
pub accelerator_type: Option<String>,
}
Expand description
A specification of the type and number of accelerator cards attached to the instance.
This type is not used in any activity, and only used as part of another schema.
Fields§
§accelerator_count: Option<i32>
The number of the guest accelerator cards exposed to this instance.
accelerator_type: Option<String>
Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
Trait Implementations§
source§impl Clone for AcceleratorConfig
impl Clone for AcceleratorConfig
source§fn clone(&self) -> AcceleratorConfig
fn clone(&self) -> AcceleratorConfig
Returns a copy 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 AcceleratorConfig
impl Debug for AcceleratorConfig
source§impl Default for AcceleratorConfig
impl Default for AcceleratorConfig
source§fn default() -> AcceleratorConfig
fn default() -> AcceleratorConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AcceleratorConfig
impl<'de> Deserialize<'de> for AcceleratorConfig
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 Serialize for AcceleratorConfig
impl Serialize for AcceleratorConfig
impl Part for AcceleratorConfig
Auto Trait Implementations§
impl RefUnwindSafe for AcceleratorConfig
impl Send for AcceleratorConfig
impl Sync for AcceleratorConfig
impl Unpin for AcceleratorConfig
impl UnwindSafe for AcceleratorConfig
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