Struct gapi_grpc::google::cloud::channel::v1::Plan[][src]

pub struct Plan {
    pub payment_plan: i32,
    pub payment_type: i32,
    pub payment_cycle: Option<Period>,
    pub trial_period: Option<Period>,
    pub billing_account: String,
}

The payment plan for the Offer. Describes how to make a payment.

Fields

payment_plan: i32

Describes how a reseller will be billed.

payment_type: i32

Specifies when the payment needs to happen.

payment_cycle: Option<Period>

Describes how frequently the reseller will be billed, such as once per month.

trial_period: Option<Period>

Present for Offers with a trial period. For trial-only Offers, a paid service needs to start before the trial period ends for continued service. For Regular Offers with a trial period, the regular pricing goes into effect when trial period ends, or if paid service is started before the end of the trial period.

billing_account: String

Reseller Billing account to charge after an offer transaction. Only present for Google Cloud Platform offers.

Implementations

impl Plan[src]

pub fn payment_plan(&self) -> PaymentPlan[src]

Returns the enum value of payment_plan, or the default if the field is set to an invalid enum value.

pub fn set_payment_plan(&mut self, value: PaymentPlan)[src]

Sets payment_plan to the provided enum value.

pub fn payment_type(&self) -> PaymentType[src]

Returns the enum value of payment_type, or the default if the field is set to an invalid enum value.

pub fn set_payment_type(&mut self, value: PaymentType)[src]

Sets payment_type to the provided enum value.

Trait Implementations

impl Clone for Plan[src]

impl Debug for Plan[src]

impl Default for Plan[src]

impl Message for Plan[src]

impl PartialEq<Plan> for Plan[src]

impl StructuralPartialEq for Plan[src]

Auto Trait Implementations

impl RefUnwindSafe for Plan

impl Send for Plan

impl Sync for Plan

impl Unpin for Plan

impl UnwindSafe for Plan

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<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]