#[repr(i32)]pub enum StoreApplicability {
Unspecified = 0,
AllStores = 1,
SpecificStores = 2,
}
Expand description
Store codes or list of store codes the promotion applies to. Only for Local inventory ads promotions.
Variants§
Unspecified = 0
Which store codes the promotion applies to is unknown.
AllStores = 1
Promotion applies to all stores.
SpecificStores = 2
Promotion applies to only the specified stores.
Implementations§
source§impl StoreApplicability
impl StoreApplicability
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 StoreApplicability
impl Clone for StoreApplicability
source§fn clone(&self) -> StoreApplicability
fn clone(&self) -> StoreApplicability
Returns a copy 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 Debug for StoreApplicability
impl Debug for StoreApplicability
source§impl Default for StoreApplicability
impl Default for StoreApplicability
source§fn default() -> StoreApplicability
fn default() -> StoreApplicability
Returns the “default value” for a type. Read more
source§impl From<StoreApplicability> for i32
impl From<StoreApplicability> for i32
source§fn from(value: StoreApplicability) -> i32
fn from(value: StoreApplicability) -> i32
Converts to this type from the input type.
source§impl Hash for StoreApplicability
impl Hash for StoreApplicability
source§impl Ord for StoreApplicability
impl Ord for StoreApplicability
source§fn cmp(&self, other: &StoreApplicability) -> Ordering
fn cmp(&self, other: &StoreApplicability) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for StoreApplicability
impl PartialEq for StoreApplicability
source§fn eq(&self, other: &StoreApplicability) -> bool
fn eq(&self, other: &StoreApplicability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StoreApplicability
impl PartialOrd for StoreApplicability
source§fn partial_cmp(&self, other: &StoreApplicability) -> Option<Ordering>
fn partial_cmp(&self, other: &StoreApplicability) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for StoreApplicability
impl TryFrom<i32> for StoreApplicability
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<StoreApplicability, UnknownEnumValue>
fn try_from(value: i32) -> Result<StoreApplicability, UnknownEnumValue>
Performs the conversion.
impl Copy for StoreApplicability
impl Eq for StoreApplicability
impl StructuralPartialEq for StoreApplicability
Auto Trait Implementations§
impl Freeze for StoreApplicability
impl RefUnwindSafe for StoreApplicability
impl Send for StoreApplicability
impl Sync for StoreApplicability
impl Unpin for StoreApplicability
impl UnwindSafe for StoreApplicability
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
§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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
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>
Wrap the input message
T
in a tonic::Request