Enum gapi_grpc::google::cloud::channel::v1::ResourceType[][src]

#[repr(i32)]pub enum ResourceType {
    Unspecified,
    Seat,
    Mau,
    Gb,
    LicensedUser,
    Minutes,
    IaasUsage,
    Subscription,
}

Represents the type for a monetizable resource(any entity on which billing happens). For example, this could be MINUTES for Google Voice and GB for Google Drive. One SKU can map to multiple monetizable resources.

Variants

Unspecified

Not used.

Seat

Seat.

Mau

Monthly active user.

Gb

GB (used for storage SKUs).

LicensedUser

Active licensed users(for Voice SKUs).

Minutes

Voice usage.

IaasUsage

For IaaS SKUs like Google Cloud Platform, monetization is based on usage accrued on your billing account irrespective of the type of monetizable resource. This enum represents an aggregated resource/container for all usage SKUs on a billing account. Currently, only applicable to Google Cloud Platform.

Subscription

For Google Cloud Platform subscriptions like Anthos or SAP.

Implementations

impl ResourceType[src]

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

Returns true if value is a variant of ResourceType.

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

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

Trait Implementations

impl Clone for ResourceType[src]

impl Copy for ResourceType[src]

impl Debug for ResourceType[src]

impl Default for ResourceType[src]

impl Eq for ResourceType[src]

impl From<ResourceType> for i32[src]

impl Hash for ResourceType[src]

impl Ord for ResourceType[src]

impl PartialEq<ResourceType> for ResourceType[src]

impl PartialOrd<ResourceType> for ResourceType[src]

impl StructuralEq for ResourceType[src]

impl StructuralPartialEq for ResourceType[src]

Auto Trait Implementations

impl RefUnwindSafe for ResourceType

impl Send for ResourceType

impl Sync for ResourceType

impl Unpin for ResourceType

impl UnwindSafe for ResourceType

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> 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>, 
[src]

impl<T> WithSubscriber for T[src]