pub struct PromotionFilter {
pub status: Option<PromotionStatus>,
pub promotion_type: Option<PromotionType>,
pub trigger: Option<PromotionTrigger>,
pub is_active: Option<bool>,
pub search: Option<String>,
pub limit: Option<u32>,
pub offset: Option<u32>,
}Expand description
Filter for listing promotions
Fields§
§status: Option<PromotionStatus>§promotion_type: Option<PromotionType>§trigger: Option<PromotionTrigger>§is_active: Option<bool>§search: Option<String>§limit: Option<u32>§offset: Option<u32>Trait Implementations§
Source§impl Clone for PromotionFilter
impl Clone for PromotionFilter
Source§fn clone(&self) -> PromotionFilter
fn clone(&self) -> PromotionFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PromotionFilter
impl Debug for PromotionFilter
Source§impl Default for PromotionFilter
impl Default for PromotionFilter
Source§fn default() -> PromotionFilter
fn default() -> PromotionFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromotionFilter
impl<'de> Deserialize<'de> for PromotionFilter
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromotionFilter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromotionFilter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PromotionFilter
impl Serialize for PromotionFilter
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PromotionFilter
impl RefUnwindSafe for PromotionFilter
impl Send for PromotionFilter
impl Sync for PromotionFilter
impl Unpin for PromotionFilter
impl UnsafeUnpin for PromotionFilter
impl UnwindSafe for PromotionFilter
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