pub struct UpdatePromotionCode<'a> {
pub active: Option<bool>,
pub expand: &'a [&'a str],
pub metadata: Option<Metadata>,
pub restrictions: Option<UpdatePromotionCodeRestrictions>,
}
Available on crate feature
billing
only.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 duplicate 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