pub struct GoogleCloudChannelV1PricePhase {
pub first_period: Option<i32>,
pub last_period: Option<i32>,
pub period_type: Option<String>,
pub price: Option<GoogleCloudChannelV1Price>,
pub price_tiers: Option<Vec<GoogleCloudChannelV1PriceTier>>,
}
Expand description
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.
This type is not used in any activity, and only used as part of another schema.
Fields§
§first_period: Option<i32>
Defines first period for the phase.
last_period: Option<i32>
Defines first period for the phase.
period_type: Option<String>
Defines the phase period type.
price: Option<GoogleCloudChannelV1Price>
Price of the phase. Present if there are no price tiers.
price_tiers: Option<Vec<GoogleCloudChannelV1PriceTier>>
Price by the resource tiers.
Trait Implementations§
source§impl Clone for GoogleCloudChannelV1PricePhase
impl Clone for GoogleCloudChannelV1PricePhase
source§fn clone(&self) -> GoogleCloudChannelV1PricePhase
fn clone(&self) -> GoogleCloudChannelV1PricePhase
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for GoogleCloudChannelV1PricePhase
impl Default for GoogleCloudChannelV1PricePhase
source§fn default() -> GoogleCloudChannelV1PricePhase
fn default() -> GoogleCloudChannelV1PricePhase
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GoogleCloudChannelV1PricePhase
impl<'de> Deserialize<'de> for GoogleCloudChannelV1PricePhase
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleCloudChannelV1PricePhase
Auto Trait Implementations§
impl RefUnwindSafe for GoogleCloudChannelV1PricePhase
impl Send for GoogleCloudChannelV1PricePhase
impl Sync for GoogleCloudChannelV1PricePhase
impl Unpin for GoogleCloudChannelV1PricePhase
impl UnwindSafe for GoogleCloudChannelV1PricePhase
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
Mutably borrows from an owned value. Read more