Struct stripe::model::PromotionCode
source · pub struct PromotionCode {Show 13 fields
pub active: bool,
pub code: String,
pub coupon: Coupon,
pub created: i64,
pub customer: Option<Value>,
pub expires_at: Option<i64>,
pub id: String,
pub livemode: bool,
pub max_redemptions: Option<i64>,
pub metadata: Option<Value>,
pub object: String,
pub restrictions: PromotionCodesResourceRestrictions,
pub times_redeemed: i64,
}Fields§
§active: bool§code: String§coupon: Coupon§created: i64§customer: Option<Value>§expires_at: Option<i64>§id: String§livemode: bool§max_redemptions: Option<i64>§metadata: Option<Value>§object: String§restrictions: PromotionCodesResourceRestrictions§times_redeemed: i64Trait Implementations§
source§impl Clone for PromotionCode
impl Clone for PromotionCode
source§fn clone(&self) -> PromotionCode
fn clone(&self) -> PromotionCode
Returns a copy of the value. Read more
1.0.0 · 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 PromotionCode
impl Debug for PromotionCode
source§impl<'de> Deserialize<'de> for PromotionCode
impl<'de> Deserialize<'de> for PromotionCode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PromotionCode
impl Display for PromotionCode
Auto Trait Implementations§
impl RefUnwindSafe for PromotionCode
impl Send for PromotionCode
impl Sync for PromotionCode
impl Unpin for PromotionCode
impl UnwindSafe for PromotionCode
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