pub struct UpdatePromotionInput {
pub name: Option<String>,
pub description: Option<String>,
pub internal_notes: Option<String>,
pub status: Option<String>,
pub percentage_off: Option<f64>,
pub fixed_amount_off: Option<f64>,
pub max_discount_amount: Option<f64>,
pub starts_at: Option<String>,
pub ends_at: Option<String>,
pub total_usage_limit: Option<i32>,
pub per_customer_limit: Option<i32>,
pub priority: Option<i32>,
}Expand description
Input for updating a promotion
Fields§
§name: Option<String>§description: Option<String>§internal_notes: Option<String>§status: Option<String>§percentage_off: Option<f64>§fixed_amount_off: Option<f64>§max_discount_amount: Option<f64>§starts_at: Option<String>§ends_at: Option<String>§total_usage_limit: Option<i32>§per_customer_limit: Option<i32>§priority: Option<i32>Trait Implementations§
Source§impl Default for UpdatePromotionInput
impl Default for UpdatePromotionInput
Source§fn default() -> UpdatePromotionInput
fn default() -> UpdatePromotionInput
Returns the “default value” for a type. Read more
Source§impl FromNapiValue for UpdatePromotionInput
impl FromNapiValue for UpdatePromotionInput
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for UpdatePromotionInput
impl ToNapiValue for UpdatePromotionInput
Source§unsafe fn to_napi_value(
env: napi_env,
val: UpdatePromotionInput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: UpdatePromotionInput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for UpdatePromotionInput
impl TypeName for UpdatePromotionInput
Source§impl ValidateNapiValue for UpdatePromotionInput
impl ValidateNapiValue for UpdatePromotionInput
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for UpdatePromotionInput
impl RefUnwindSafe for UpdatePromotionInput
impl Send for UpdatePromotionInput
impl Sync for UpdatePromotionInput
impl Unpin for UpdatePromotionInput
impl UnsafeUnpin for UpdatePromotionInput
impl UnwindSafe for UpdatePromotionInput
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