pub struct CouponOutput {
pub id: String,
pub promotion_id: String,
pub code: String,
pub status: String,
pub usage_limit: Option<i32>,
pub per_customer_limit: Option<i32>,
pub usage_count: i32,
pub starts_at: Option<String>,
pub ends_at: Option<String>,
pub metadata: Option<String>,
pub created_at: String,
pub updated_at: String,
}Expand description
Coupon code output
Fields§
§id: String§promotion_id: String§code: String§status: String§usage_limit: Option<i32>§per_customer_limit: Option<i32>§usage_count: i32§starts_at: Option<String>§ends_at: Option<String>§metadata: Option<String>§created_at: String§updated_at: StringTrait Implementations§
Source§impl From<CouponCode> for CouponOutput
impl From<CouponCode> for CouponOutput
Source§fn from(c: CouponCode) -> Self
fn from(c: CouponCode) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for CouponOutput
impl FromNapiValue for CouponOutput
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 CouponOutput
impl ToNapiValue for CouponOutput
Source§unsafe fn to_napi_value(env: napi_env, val: CouponOutput) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: CouponOutput) -> Result<napi_value>
Safety Read more
Source§impl TypeName for CouponOutput
impl TypeName for CouponOutput
Source§impl ValidateNapiValue for CouponOutput
impl ValidateNapiValue for CouponOutput
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 CouponOutput
impl RefUnwindSafe for CouponOutput
impl Send for CouponOutput
impl Sync for CouponOutput
impl Unpin for CouponOutput
impl UnsafeUnpin for CouponOutput
impl UnwindSafe for CouponOutput
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