pub struct GoogleCloudChannelV1DiscountComponent {
pub discount_absolute: Option<GoogleTypeMoney>,
pub discount_percentage: Option<f64>,
pub discount_type: Option<String>,
}Expand description
Represents a single component of the total discount applicable on a Price.
This type is not used in any activity, and only used as part of another schema.
Fields§
§discount_absolute: Option<GoogleTypeMoney>Fixed value discount.
discount_percentage: Option<f64>Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.
discount_type: Option<String>Type of the discount.
Trait Implementations§
Source§impl Clone for GoogleCloudChannelV1DiscountComponent
impl Clone for GoogleCloudChannelV1DiscountComponent
Source§fn clone(&self) -> GoogleCloudChannelV1DiscountComponent
fn clone(&self) -> GoogleCloudChannelV1DiscountComponent
Returns a duplicate 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 GoogleCloudChannelV1DiscountComponent
impl Default for GoogleCloudChannelV1DiscountComponent
Source§fn default() -> GoogleCloudChannelV1DiscountComponent
fn default() -> GoogleCloudChannelV1DiscountComponent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleCloudChannelV1DiscountComponent
impl<'de> Deserialize<'de> for GoogleCloudChannelV1DiscountComponent
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 GoogleCloudChannelV1DiscountComponent
Auto Trait Implementations§
impl Freeze for GoogleCloudChannelV1DiscountComponent
impl RefUnwindSafe for GoogleCloudChannelV1DiscountComponent
impl Send for GoogleCloudChannelV1DiscountComponent
impl Sync for GoogleCloudChannelV1DiscountComponent
impl Unpin for GoogleCloudChannelV1DiscountComponent
impl UnwindSafe for GoogleCloudChannelV1DiscountComponent
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