Enum google_api_proto::google::ads::googleads::v15::enums::promotion_extension_occasion_enum::PromotionExtensionOccasion
source · #[repr(i32)]pub enum PromotionExtensionOccasion {
Show 39 variants
Unspecified = 0,
Unknown = 1,
NewYears = 2,
ChineseNewYear = 3,
ValentinesDay = 4,
Easter = 5,
MothersDay = 6,
FathersDay = 7,
LaborDay = 8,
BackToSchool = 9,
Halloween = 10,
BlackFriday = 11,
CyberMonday = 12,
Christmas = 13,
BoxingDay = 14,
IndependenceDay = 15,
NationalDay = 16,
EndOfSeason = 17,
WinterSale = 18,
SummerSale = 19,
FallSale = 20,
SpringSale = 21,
Ramadan = 22,
EidAlFitr = 23,
EidAlAdha = 24,
SinglesDay = 25,
WomensDay = 26,
Holi = 27,
ParentsDay = 28,
StNicholasDay = 29,
Carnival = 30,
Epiphany = 31,
RoshHashanah = 32,
Passover = 33,
Hanukkah = 34,
Diwali = 35,
Navratri = 36,
Songkran = 37,
YearEndGift = 38,
}
Expand description
A promotion extension occasion.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
NewYears = 2
New Year’s.
ChineseNewYear = 3
Chinese New Year.
ValentinesDay = 4
Valentine’s Day.
Easter = 5
Easter.
MothersDay = 6
Mother’s Day.
FathersDay = 7
Father’s Day.
LaborDay = 8
Labor Day.
BackToSchool = 9
Back To School.
Halloween = 10
Halloween.
BlackFriday = 11
Black Friday.
CyberMonday = 12
Cyber Monday.
Christmas = 13
Christmas.
BoxingDay = 14
Boxing Day.
IndependenceDay = 15
Independence Day in any country.
NationalDay = 16
National Day in any country.
EndOfSeason = 17
End of any season.
WinterSale = 18
Winter Sale.
SummerSale = 19
Summer sale.
FallSale = 20
Fall Sale.
SpringSale = 21
Spring Sale.
Ramadan = 22
Ramadan.
EidAlFitr = 23
Eid al-Fitr.
EidAlAdha = 24
Eid al-Adha.
SinglesDay = 25
Singles Day.
WomensDay = 26
Women’s Day.
Holi = 27
Holi.
ParentsDay = 28
Parent’s Day.
StNicholasDay = 29
St. Nicholas Day.
Carnival = 30
Carnival.
Epiphany = 31
Epiphany, also known as Three Kings’ Day.
RoshHashanah = 32
Rosh Hashanah.
Passover = 33
Passover.
Hanukkah = 34
Hanukkah.
Diwali = 35
Diwali.
Navratri.
Songkran = 37
Available in Thai: Songkran.
YearEndGift = 38
Available in Japanese: Year-end Gift.
Implementations§
source§impl PromotionExtensionOccasion
impl PromotionExtensionOccasion
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of PromotionExtensionOccasion
.
sourcepub fn from_i32(value: i32) -> Option<PromotionExtensionOccasion>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<PromotionExtensionOccasion>
Converts an i32
to a PromotionExtensionOccasion
, or None
if value
is not a valid variant.
source§impl PromotionExtensionOccasion
impl PromotionExtensionOccasion
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 PromotionExtensionOccasion
impl Clone for PromotionExtensionOccasion
source§fn clone(&self) -> PromotionExtensionOccasion
fn clone(&self) -> PromotionExtensionOccasion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PromotionExtensionOccasion
impl Debug for PromotionExtensionOccasion
source§impl Default for PromotionExtensionOccasion
impl Default for PromotionExtensionOccasion
source§fn default() -> PromotionExtensionOccasion
fn default() -> PromotionExtensionOccasion
source§impl From<PromotionExtensionOccasion> for i32
impl From<PromotionExtensionOccasion> for i32
source§fn from(value: PromotionExtensionOccasion) -> i32
fn from(value: PromotionExtensionOccasion) -> i32
source§impl Hash for PromotionExtensionOccasion
impl Hash for PromotionExtensionOccasion
source§impl Ord for PromotionExtensionOccasion
impl Ord for PromotionExtensionOccasion
source§fn cmp(&self, other: &PromotionExtensionOccasion) -> Ordering
fn cmp(&self, other: &PromotionExtensionOccasion) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PromotionExtensionOccasion
impl PartialEq for PromotionExtensionOccasion
source§fn eq(&self, other: &PromotionExtensionOccasion) -> bool
fn eq(&self, other: &PromotionExtensionOccasion) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PromotionExtensionOccasion
impl PartialOrd for PromotionExtensionOccasion
source§fn partial_cmp(&self, other: &PromotionExtensionOccasion) -> Option<Ordering>
fn partial_cmp(&self, other: &PromotionExtensionOccasion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for PromotionExtensionOccasion
impl TryFrom<i32> for PromotionExtensionOccasion
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PromotionExtensionOccasion, UnknownEnumValue>
fn try_from(value: i32) -> Result<PromotionExtensionOccasion, UnknownEnumValue>
impl Copy for PromotionExtensionOccasion
impl Eq for PromotionExtensionOccasion
impl StructuralPartialEq for PromotionExtensionOccasion
Auto Trait Implementations§
impl Freeze for PromotionExtensionOccasion
impl RefUnwindSafe for PromotionExtensionOccasion
impl Send for PromotionExtensionOccasion
impl Sync for PromotionExtensionOccasion
impl Unpin for PromotionExtensionOccasion
impl UnwindSafe for PromotionExtensionOccasion
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
§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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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