pub struct UpdatePromotionCodeRestrictions {
pub currency_options: Option<HashMap<Currency, CurrencyOption>>,
}Expand description
Settings that restrict the redemption of the promotion code.
Fields§
§currency_options: Option<HashMap<Currency, CurrencyOption>>Promotion codes defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.
Implementations§
Trait Implementations§
Source§impl Clone for UpdatePromotionCodeRestrictions
impl Clone for UpdatePromotionCodeRestrictions
Source§fn clone(&self) -> UpdatePromotionCodeRestrictions
fn clone(&self) -> UpdatePromotionCodeRestrictions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UpdatePromotionCodeRestrictions
impl RefUnwindSafe for UpdatePromotionCodeRestrictions
impl Send for UpdatePromotionCodeRestrictions
impl Sync for UpdatePromotionCodeRestrictions
impl Unpin for UpdatePromotionCodeRestrictions
impl UnsafeUnpin for UpdatePromotionCodeRestrictions
impl UnwindSafe for UpdatePromotionCodeRestrictions
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