Struct stripe::CreateCheckoutSessionDiscounts
source · pub struct CreateCheckoutSessionDiscounts {
pub coupon: Option<String>,
pub promotion_code: Option<String>,
}
Fields§
§coupon: Option<String>
The ID of the coupon to apply to this Session.
promotion_code: Option<String>
The ID of a promotion code to apply to this Session.
Trait Implementations§
source§impl Clone for CreateCheckoutSessionDiscounts
impl Clone for CreateCheckoutSessionDiscounts
source§fn clone(&self) -> CreateCheckoutSessionDiscounts
fn clone(&self) -> CreateCheckoutSessionDiscounts
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 Default for CreateCheckoutSessionDiscounts
impl Default for CreateCheckoutSessionDiscounts
source§fn default() -> CreateCheckoutSessionDiscounts
fn default() -> CreateCheckoutSessionDiscounts
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateCheckoutSessionDiscounts
impl<'de> Deserialize<'de> for CreateCheckoutSessionDiscounts
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
Auto Trait Implementations§
impl RefUnwindSafe for CreateCheckoutSessionDiscounts
impl Send for CreateCheckoutSessionDiscounts
impl Sync for CreateCheckoutSessionDiscounts
impl Unpin for CreateCheckoutSessionDiscounts
impl UnwindSafe for CreateCheckoutSessionDiscounts
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