pub struct CreateInvoiceShippingCostShippingRateDataFixedAmount {
pub amount: i64,
pub currency: Currency,
pub currency_options: Option<HashMap<Currency, CreateInvoiceShippingCostShippingRateDataFixedAmountCurrencyOptions>>,
}
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, CreateInvoiceShippingCostShippingRateDataFixedAmountCurrencyOptions>>
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 CreateInvoiceShippingCostShippingRateDataFixedAmount
impl Clone for CreateInvoiceShippingCostShippingRateDataFixedAmount
source§fn clone(&self) -> CreateInvoiceShippingCostShippingRateDataFixedAmount
fn clone(&self) -> CreateInvoiceShippingCostShippingRateDataFixedAmount
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 CreateInvoiceShippingCostShippingRateDataFixedAmount
impl Default for CreateInvoiceShippingCostShippingRateDataFixedAmount
source§fn default() -> CreateInvoiceShippingCostShippingRateDataFixedAmount
fn default() -> CreateInvoiceShippingCostShippingRateDataFixedAmount
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateInvoiceShippingCostShippingRateDataFixedAmount
impl<'de> Deserialize<'de> for CreateInvoiceShippingCostShippingRateDataFixedAmount
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 CreateInvoiceShippingCostShippingRateDataFixedAmount
impl RefUnwindSafe for CreateInvoiceShippingCostShippingRateDataFixedAmount
impl Send for CreateInvoiceShippingCostShippingRateDataFixedAmount
impl Sync for CreateInvoiceShippingCostShippingRateDataFixedAmount
impl Unpin for CreateInvoiceShippingCostShippingRateDataFixedAmount
impl UnwindSafe for CreateInvoiceShippingCostShippingRateDataFixedAmount
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