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

pub struct PricePhase {
    pub period_type: i32,
    pub first_period: i32,
    pub last_period: i32,
    pub price: Option<Price>,
    pub price_tiers: Vec<PriceTier>,
}

Specifies the price by the duration of months. For example, a 20% discount for the first six months, then a 10% discount starting on the seventh month.

Fields

period_type: i32

Defines the phase period type.

first_period: i32

Defines first period for the phase.

last_period: i32

Defines first period for the phase.

price: Option<Price>

Price of the phase. Present if there are no price tiers.

price_tiers: Vec<PriceTier>

Price by the resource tiers.

Implementations

impl PricePhase[src]

pub fn period_type(&self) -> PeriodType[src]

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

pub fn set_period_type(&mut self, value: PeriodType)[src]

Sets period_type to the provided enum value.

Trait Implementations

impl Clone for PricePhase[src]

impl Debug for PricePhase[src]

impl Default for PricePhase[src]

impl Message for PricePhase[src]

impl PartialEq<PricePhase> for PricePhase[src]

impl StructuralPartialEq for PricePhase[src]

Auto Trait Implementations

impl RefUnwindSafe for PricePhase

impl Send for PricePhase

impl Sync for PricePhase

impl Unpin for PricePhase

impl UnwindSafe for PricePhase

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]