Struct stripe::UpdatePromotionCode
source · pub struct UpdatePromotionCode<'a> {
pub active: Option<bool>,
pub expand: &'a [&'a str],
pub metadata: Option<Metadata>,
pub restrictions: Option<UpdatePromotionCodeRestrictions>,
}
Expand description
The parameters for PromotionCode::update
.
Fields§
§active: Option<bool>
Whether the promotion code is currently active.
A promotion code can only be reactivated when the coupon is still valid and the promotion code is otherwise redeemable.
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
.
restrictions: Option<UpdatePromotionCodeRestrictions>
Settings that restrict the redemption of the promotion code.
Implementations§
source§impl<'a> UpdatePromotionCode<'a>
impl<'a> UpdatePromotionCode<'a>
Trait Implementations§
source§impl<'a> Clone for UpdatePromotionCode<'a>
impl<'a> Clone for UpdatePromotionCode<'a>
source§fn clone(&self) -> UpdatePromotionCode<'a>
fn clone(&self) -> UpdatePromotionCode<'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 UpdatePromotionCode<'a>
impl<'a> Debug for UpdatePromotionCode<'a>
source§impl<'a> Default for UpdatePromotionCode<'a>
impl<'a> Default for UpdatePromotionCode<'a>
source§fn default() -> UpdatePromotionCode<'a>
fn default() -> UpdatePromotionCode<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for UpdatePromotionCode<'a>
impl<'a> RefUnwindSafe for UpdatePromotionCode<'a>
impl<'a> Send for UpdatePromotionCode<'a>
impl<'a> Sync for UpdatePromotionCode<'a>
impl<'a> Unpin for UpdatePromotionCode<'a>
impl<'a> UnwindSafe for UpdatePromotionCode<'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