pub struct PromotionOutput {Show 26 fields
pub id: String,
pub code: String,
pub name: String,
pub description: Option<String>,
pub internal_notes: Option<String>,
pub promotion_type: String,
pub trigger: String,
pub target: String,
pub stacking: String,
pub status: String,
pub percentage_off: Option<f64>,
pub fixed_amount_off: Option<f64>,
pub max_discount_amount: Option<f64>,
pub buy_quantity: Option<i32>,
pub get_quantity: Option<i32>,
pub get_discount_percent: Option<f64>,
pub starts_at: String,
pub ends_at: Option<String>,
pub total_usage_limit: Option<i32>,
pub per_customer_limit: Option<i32>,
pub usage_count: i32,
pub currency: String,
pub priority: i32,
pub metadata: Option<String>,
pub created_at: String,
pub updated_at: String,
}Expand description
Promotion output
Fields§
§id: String§code: String§name: String§description: Option<String>§internal_notes: Option<String>§promotion_type: String§trigger: String§target: String§stacking: String§status: String§percentage_off: Option<f64>§fixed_amount_off: Option<f64>§max_discount_amount: Option<f64>§buy_quantity: Option<i32>§get_quantity: Option<i32>§get_discount_percent: Option<f64>§starts_at: String§ends_at: Option<String>§total_usage_limit: Option<i32>§per_customer_limit: Option<i32>§usage_count: i32§currency: String§priority: i32§metadata: Option<String>§created_at: String§updated_at: StringTrait Implementations§
Source§impl From<Promotion> for PromotionOutput
impl From<Promotion> for PromotionOutput
Source§impl FromNapiValue for PromotionOutput
impl FromNapiValue for PromotionOutput
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 PromotionOutput
impl ToNapiValue for PromotionOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: PromotionOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: PromotionOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for PromotionOutput
impl TypeName for PromotionOutput
Source§impl ValidateNapiValue for PromotionOutput
impl ValidateNapiValue for PromotionOutput
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 PromotionOutput
impl RefUnwindSafe for PromotionOutput
impl Send for PromotionOutput
impl Sync for PromotionOutput
impl Unpin for PromotionOutput
impl UnsafeUnpin for PromotionOutput
impl UnwindSafe for PromotionOutput
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