Struct stripe::UpdatePromotionCodeRestrictions
source · pub struct UpdatePromotionCodeRestrictions {
pub currency_options: Option<HashMap<Currency, UpdatePromotionCodeRestrictionsCurrencyOptions>>,
}
Fields§
§currency_options: Option<HashMap<Currency, UpdatePromotionCodeRestrictionsCurrencyOptions>>
Promotion codes defined in each available currency option.
Each key must be a three-letter ISO currency code and a supported currency.
Trait Implementations§
source§impl Clone for UpdatePromotionCodeRestrictions
impl Clone for UpdatePromotionCodeRestrictions
source§fn clone(&self) -> UpdatePromotionCodeRestrictions
fn clone(&self) -> UpdatePromotionCodeRestrictions
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 UpdatePromotionCodeRestrictions
impl Default for UpdatePromotionCodeRestrictions
source§fn default() -> UpdatePromotionCodeRestrictions
fn default() -> UpdatePromotionCodeRestrictions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UpdatePromotionCodeRestrictions
impl<'de> Deserialize<'de> for UpdatePromotionCodeRestrictions
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 UpdatePromotionCodeRestrictions
impl Send for UpdatePromotionCodeRestrictions
impl Sync for UpdatePromotionCodeRestrictions
impl Unpin 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