pub struct GoogleCloudChannelV1Price {
pub base_price: Option<GoogleTypeMoney>,
pub discount: Option<f64>,
pub discount_components: Option<Vec<GoogleCloudChannelV1DiscountComponent>>,
pub effective_price: Option<GoogleTypeMoney>,
pub external_price_uri: Option<String>,
pub price_period: Option<GoogleCloudChannelV1Period>,
}Expand description
Represents the price of the Offer.
This type is not used in any activity, and only used as part of another schema.
Fields§
§base_price: Option<GoogleTypeMoney>Base price.
discount: Option<f64>Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
discount_components: Option<Vec<GoogleCloudChannelV1DiscountComponent>>Breakdown of the discount into its components. This will be empty if there is no discount present.
effective_price: Option<GoogleTypeMoney>Effective Price after applying the discounts.
external_price_uri: Option<String>Link to external price list, such as link to Google Voice rate card.
price_period: Option<GoogleCloudChannelV1Period>The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
Trait Implementations§
Source§impl Clone for GoogleCloudChannelV1Price
impl Clone for GoogleCloudChannelV1Price
Source§fn clone(&self) -> GoogleCloudChannelV1Price
fn clone(&self) -> GoogleCloudChannelV1Price
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoogleCloudChannelV1Price
impl Debug for GoogleCloudChannelV1Price
Source§impl Default for GoogleCloudChannelV1Price
impl Default for GoogleCloudChannelV1Price
Source§fn default() -> GoogleCloudChannelV1Price
fn default() -> GoogleCloudChannelV1Price
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleCloudChannelV1Price
impl<'de> Deserialize<'de> for GoogleCloudChannelV1Price
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 GoogleCloudChannelV1Price
Auto Trait Implementations§
impl Freeze for GoogleCloudChannelV1Price
impl RefUnwindSafe for GoogleCloudChannelV1Price
impl Send for GoogleCloudChannelV1Price
impl Sync for GoogleCloudChannelV1Price
impl Unpin for GoogleCloudChannelV1Price
impl UnsafeUnpin for GoogleCloudChannelV1Price
impl UnwindSafe for GoogleCloudChannelV1Price
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