pub struct UnitPriceOverride {
pub country_codes: Vec<CountryCodeSupported>,
pub unit_price: Money,
}
Fields§
§country_codes: Vec<CountryCodeSupported>
Supported two-letter ISO 3166-1 alpha-2 country code. Customers located in the listed countries are charged the override price.
unit_price: Money
A base representation of monetary value unformatted in the lowest denomination with currency code.
Trait Implementations§
Source§impl Clone for UnitPriceOverride
impl Clone for UnitPriceOverride
Source§fn clone(&self) -> UnitPriceOverride
fn clone(&self) -> UnitPriceOverride
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 Debug for UnitPriceOverride
impl Debug for UnitPriceOverride
Source§impl<'de> Deserialize<'de> for UnitPriceOverride
impl<'de> Deserialize<'de> for UnitPriceOverride
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 Freeze for UnitPriceOverride
impl RefUnwindSafe for UnitPriceOverride
impl Send for UnitPriceOverride
impl Sync for UnitPriceOverride
impl Unpin for UnitPriceOverride
impl UnwindSafe for UnitPriceOverride
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