#[repr(i32)]pub enum PromotionPlaceholderField {
Show 16 variants
Unspecified = 0,
Unknown = 1,
PromotionTarget = 2,
DiscountModifier = 3,
PercentOff = 4,
MoneyAmountOff = 5,
PromotionCode = 6,
OrdersOverAmount = 7,
PromotionStart = 8,
PromotionEnd = 9,
Occasion = 10,
FinalUrls = 11,
FinalMobileUrls = 12,
TrackingUrl = 13,
Language = 14,
FinalUrlSuffix = 15,
}
Expand description
Possible values for Promotion placeholder fields.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
PromotionTarget = 2
Data Type: STRING. The text that appears on the ad when the extension is shown.
DiscountModifier = 3
Data Type: STRING. Lets you add “up to” phrase to the promotion, in case you have variable promotion rates.
PercentOff = 4
Data Type: INT64. Takes a value in micros, where 1 million micros represents 1%, and is shown as a percentage when rendered.
MoneyAmountOff = 5
Data Type: MONEY. Requires a currency and an amount of money.
PromotionCode = 6
Data Type: STRING. A string that the user enters to get the discount.
OrdersOverAmount = 7
Data Type: MONEY. A minimum spend before the user qualifies for the promotion.
PromotionStart = 8
Data Type: DATE. The start date of the promotion.
PromotionEnd = 9
Data Type: DATE. The end date of the promotion.
Occasion = 10
Data Type: STRING. Describes the associated event for the promotion using one of the PromotionExtensionOccasion enum values, for example NEW_YEARS.
FinalUrls = 11
Data Type: URL_LIST. Final URLs to be used in the ad when using Upgraded URLs.
FinalMobileUrls = 12
Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded URLs.
TrackingUrl = 13
Data Type: URL. Tracking template for the ad when using Upgraded URLs.
Language = 14
Data Type: STRING. A string represented by a language code for the promotion.
FinalUrlSuffix = 15
Data Type: STRING. Final URL suffix for the ad when using parallel tracking.
Implementations§
Source§impl PromotionPlaceholderField
impl PromotionPlaceholderField
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for PromotionPlaceholderField
impl Clone for PromotionPlaceholderField
Source§fn clone(&self) -> PromotionPlaceholderField
fn clone(&self) -> PromotionPlaceholderField
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PromotionPlaceholderField
impl Debug for PromotionPlaceholderField
Source§impl Default for PromotionPlaceholderField
impl Default for PromotionPlaceholderField
Source§fn default() -> PromotionPlaceholderField
fn default() -> PromotionPlaceholderField
Source§impl From<PromotionPlaceholderField> for i32
impl From<PromotionPlaceholderField> for i32
Source§fn from(value: PromotionPlaceholderField) -> i32
fn from(value: PromotionPlaceholderField) -> i32
Source§impl Hash for PromotionPlaceholderField
impl Hash for PromotionPlaceholderField
Source§impl Ord for PromotionPlaceholderField
impl Ord for PromotionPlaceholderField
Source§fn cmp(&self, other: &PromotionPlaceholderField) -> Ordering
fn cmp(&self, other: &PromotionPlaceholderField) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for PromotionPlaceholderField
impl PartialOrd for PromotionPlaceholderField
impl Copy for PromotionPlaceholderField
impl Eq for PromotionPlaceholderField
impl StructuralPartialEq for PromotionPlaceholderField
Auto Trait Implementations§
impl Freeze for PromotionPlaceholderField
impl RefUnwindSafe for PromotionPlaceholderField
impl Send for PromotionPlaceholderField
impl Sync for PromotionPlaceholderField
impl Unpin for PromotionPlaceholderField
impl UnwindSafe for PromotionPlaceholderField
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request