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 offers.
Implementations§
source§impl Plan
impl Plan
sourcepub fn payment_plan(&self) -> PaymentPlan
pub fn payment_plan(&self) -> PaymentPlan
Returns the enum value of payment_plan
, or the default if the field is set to an invalid enum value.
sourcepub fn set_payment_plan(&mut self, value: PaymentPlan)
pub fn set_payment_plan(&mut self, value: PaymentPlan)
Sets payment_plan
to the provided enum value.
sourcepub fn payment_type(&self) -> PaymentType
pub fn payment_type(&self) -> PaymentType
Returns the enum value of payment_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_payment_type(&mut self, value: PaymentType)
pub fn set_payment_type(&mut self, value: PaymentType)
Sets payment_type
to the provided enum value.
Trait Implementations§
source§impl Message for Plan
impl Message for Plan
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Plan
impl PartialEq for Plan
impl StructuralPartialEq for Plan
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnwindSafe for Plan
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request