pub struct ShippingRateFixedAmount {
pub amount: i64,
pub currency: Currency,
pub currency_options: Option<HashMap<Currency, ShippingRateCurrencyOption>>,
}
Fields§
§amount: i64
A non-negative integer in cents representing how much to charge.
currency: Currency
Three-letter ISO currency code, in lowercase. Must be a supported currency.
currency_options: Option<HashMap<Currency, ShippingRateCurrencyOption>>
Shipping rates 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 ShippingRateFixedAmount
impl Clone for ShippingRateFixedAmount
Source§fn clone(&self) -> ShippingRateFixedAmount
fn clone(&self) -> ShippingRateFixedAmount
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 ShippingRateFixedAmount
impl Debug for ShippingRateFixedAmount
Source§impl FromValueOpt for ShippingRateFixedAmount
impl FromValueOpt for ShippingRateFixedAmount
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for ShippingRateFixedAmount
impl RefUnwindSafe for ShippingRateFixedAmount
impl Send for ShippingRateFixedAmount
impl Sync for ShippingRateFixedAmount
impl Unpin for ShippingRateFixedAmount
impl UnwindSafe for ShippingRateFixedAmount
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