pub struct UpdatePromotion {Show 13 fields
pub name: Option<String>,
pub description: Option<String>,
pub internal_notes: Option<String>,
pub status: Option<PromotionStatus>,
pub percentage_off: Option<Decimal>,
pub fixed_amount_off: Option<Decimal>,
pub max_discount_amount: Option<Decimal>,
pub starts_at: Option<DateTime<Utc>>,
pub ends_at: Option<DateTime<Utc>>,
pub total_usage_limit: Option<i32>,
pub per_customer_limit: Option<i32>,
pub priority: Option<i32>,
pub metadata: Option<Value>,
}Expand description
Update a promotion
Fields§
§name: Option<String>§description: Option<String>§internal_notes: Option<String>§status: Option<PromotionStatus>§percentage_off: Option<Decimal>§fixed_amount_off: Option<Decimal>§max_discount_amount: Option<Decimal>§starts_at: Option<DateTime<Utc>>§ends_at: Option<DateTime<Utc>>§total_usage_limit: Option<i32>§per_customer_limit: Option<i32>§priority: Option<i32>§metadata: Option<Value>Trait Implementations§
Source§impl Clone for UpdatePromotion
impl Clone for UpdatePromotion
Source§fn clone(&self) -> UpdatePromotion
fn clone(&self) -> UpdatePromotion
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 UpdatePromotion
impl Debug for UpdatePromotion
Source§impl Default for UpdatePromotion
impl Default for UpdatePromotion
Source§fn default() -> UpdatePromotion
fn default() -> UpdatePromotion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdatePromotion
impl<'de> Deserialize<'de> for UpdatePromotion
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdatePromotion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdatePromotion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UpdatePromotion
impl Serialize for UpdatePromotion
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 UpdatePromotion
impl RefUnwindSafe for UpdatePromotion
impl Send for UpdatePromotion
impl Sync for UpdatePromotion
impl Unpin for UpdatePromotion
impl UnsafeUnpin for UpdatePromotion
impl UnwindSafe for UpdatePromotion
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