[][src]Struct google_compute1::ResourceCommitment

pub struct ResourceCommitment {
    pub accelerator_type: Option<String>,
    pub type_: Option<String>,
    pub amount: Option<String>,
}

Commitment for a particular resource (a Commitment is composed of one or more of these).

This type is not used in any activity, and only used as part of another schema.

Fields

accelerator_type: Option<String>

Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.

type_: Option<String>

Type of resource for which this commitment applies. Possible values are VCPU and MEMORY

amount: Option<String>

The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.

Trait Implementations

impl Part for ResourceCommitment[src]

impl Default for ResourceCommitment[src]

impl Clone for ResourceCommitment[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for ResourceCommitment[src]

impl Serialize for ResourceCommitment[src]

impl<'de> Deserialize<'de> for ResourceCommitment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]