#[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 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 PartialOrd for PromotionExtensionOccasion
impl PartialOrd for PromotionExtensionOccasion
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
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