pub struct UpdateCoupon<'a> {
pub currency_options: Option<HashMap<Currency, UpdateCouponCurrencyOptions>>,
pub expand: &'a [&'a str],
pub metadata: Option<Metadata>,
pub name: Option<&'a str>,
}
Expand description
The parameters for Coupon::update
.
Fields§
§currency_options: Option<HashMap<Currency, UpdateCouponCurrencyOptions>>
Coupons defined in each available currency option (only supported if the coupon is amount-based).
Each key must be a three-letter ISO currency code and a supported currency.
expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
metadata: Option<Metadata>
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata
.
name: Option<&'a str>
Name of the coupon displayed to customers on, for instance invoices, or receipts.
By default the id
is shown if name
is not set.
Implementations§
source§impl<'a> UpdateCoupon<'a>
impl<'a> UpdateCoupon<'a>
Trait Implementations§
source§impl<'a> Clone for UpdateCoupon<'a>
impl<'a> Clone for UpdateCoupon<'a>
source§fn clone(&self) -> UpdateCoupon<'a>
fn clone(&self) -> UpdateCoupon<'a>
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<'a> Debug for UpdateCoupon<'a>
impl<'a> Debug for UpdateCoupon<'a>
source§impl<'a> Default for UpdateCoupon<'a>
impl<'a> Default for UpdateCoupon<'a>
source§fn default() -> UpdateCoupon<'a>
fn default() -> UpdateCoupon<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for UpdateCoupon<'a>
impl<'a> Send for UpdateCoupon<'a>
impl<'a> Sync for UpdateCoupon<'a>
impl<'a> Unpin for UpdateCoupon<'a>
impl<'a> UnwindSafe for UpdateCoupon<'a>
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