pub struct AppliedPromotionOutput {
pub promotion_id: String,
pub promotion_name: String,
pub coupon_code: Option<String>,
pub discount_amount: f64,
pub discount_type: String,
}Expand description
An applied promotion
Fields§
§promotion_id: String§promotion_name: String§coupon_code: Option<String>§discount_amount: f64§discount_type: StringTrait Implementations§
Source§impl FromNapiValue for AppliedPromotionOutput
impl FromNapiValue for AppliedPromotionOutput
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 AppliedPromotionOutput
impl ToNapiValue for AppliedPromotionOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: AppliedPromotionOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: AppliedPromotionOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for AppliedPromotionOutput
impl TypeName for AppliedPromotionOutput
Source§impl ValidateNapiValue for AppliedPromotionOutput
impl ValidateNapiValue for AppliedPromotionOutput
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 AppliedPromotionOutput
impl RefUnwindSafe for AppliedPromotionOutput
impl Send for AppliedPromotionOutput
impl Sync for AppliedPromotionOutput
impl Unpin for AppliedPromotionOutput
impl UnsafeUnpin for AppliedPromotionOutput
impl UnwindSafe for AppliedPromotionOutput
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