[][src]Enum gcp_client::google::cloud::bigquery::reservation::v1beta1::capacity_commitment::CommitmentPlan

#[repr(i32)]pub enum CommitmentPlan {
    Unspecified,
    Flex,
    Monthly,
    Annual,
}

Commitment plan defines the current committed period. Capacity commitment cannot be deleted during it's committed period.

Variants

Unspecified

Invalid plan value. Requests with this value will be rejected with error code google.rpc.Code.INVALID_ARGUMENT.

Flex

Flex commitments have committed period of 1 minute after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.

Monthly

Monthly commitments have a committed period of 30 days after becoming ACTIVE.

Annual

Annual commitments have a committed period of 365 days after becoming ACTIVE.

Implementations

impl CommitmentPlan[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of CommitmentPlan.

pub fn from_i32(value: i32) -> Option<CommitmentPlan>[src]

Converts an i32 to a CommitmentPlan, or None if value is not a valid variant.

Trait Implementations

impl Clone for CommitmentPlan[src]

impl Copy for CommitmentPlan[src]

impl Debug for CommitmentPlan[src]

impl Default for CommitmentPlan[src]

impl Eq for CommitmentPlan[src]

impl From<CommitmentPlan> for i32[src]

impl Hash for CommitmentPlan[src]

impl Ord for CommitmentPlan[src]

impl PartialEq<CommitmentPlan> for CommitmentPlan[src]

impl PartialOrd<CommitmentPlan> for CommitmentPlan[src]

impl StructuralEq for CommitmentPlan[src]

impl StructuralPartialEq for CommitmentPlan[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]