Struct googapis::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,
}
Expand description
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
Returns the enum value of payment_plan
, or the default if the field is set to an invalid enum value.
Sets payment_plan
to the provided enum value.
Returns the enum value of payment_type
, or the default if the field is set to an invalid enum value.
Sets payment_type
to the provided enum value.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Plan
impl UnwindSafe for Plan
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more