Enum googapis::google::ads::googleads::v9::common::promotion_feed_item::DiscountType [−][src]
Expand description
Discount type, can be percentage off or amount off.
Variants
PercentOff(i64)
Percentage off discount in the promotion in micros. One million is equivalent to one percent. Either this or money_off_amount is required.
Tuple Fields of PercentOff
0: i64
MoneyAmountOff(Money)
Money amount off for discount in the promotion. Either this or percent_off is required.
Tuple Fields of MoneyAmountOff
0: Money
Implementations
pub fn merge<B>(
field: &mut Option<DiscountType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DiscountType
impl Send for DiscountType
impl Sync for DiscountType
impl Unpin for DiscountType
impl UnwindSafe for DiscountType
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more