pub struct CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmount {
pub amount: i64,
pub currency: Currency,
pub currency_options: Option<HashMap<Currency, CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmountCurrencyOptions>>,
}Expand description
Describes a fixed amount to charge for shipping. Must be present if type is fixed_amount.
Fields§
§amount: i64A non-negative integer in cents representing how much to charge.
currency: CurrencyThree-letter ISO currency code, in lowercase. Must be a supported currency.
currency_options: Option<HashMap<Currency, CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmountCurrencyOptions>>Shipping rates 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 CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmount
impl Clone for CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmount
Source§fn clone(
&self,
) -> CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmount
fn clone( &self, ) -> CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmount
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 CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmount
impl RefUnwindSafe for CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmount
impl Send for CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmount
impl Sync for CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmount
impl Unpin for CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmount
impl UnsafeUnpin for CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmount
impl UnwindSafe for CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmount
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