pub struct CheckoutPaymentMethodOptionSurchargeApiSchema {
pub amount: Option<i64>,
}
Fields§
§amount: Option<i64>
The surcharge amount, in minor units. Surcharge amount must be used in conjunction with line item amounts, if a top level amount is passed then surcharge will not be calculated.
Trait Implementations§
Source§impl Default for CheckoutPaymentMethodOptionSurchargeApiSchema
impl Default for CheckoutPaymentMethodOptionSurchargeApiSchema
Source§fn default() -> CheckoutPaymentMethodOptionSurchargeApiSchema
fn default() -> CheckoutPaymentMethodOptionSurchargeApiSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CheckoutPaymentMethodOptionSurchargeApiSchema
impl<'de> Deserialize<'de> for CheckoutPaymentMethodOptionSurchargeApiSchema
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 CheckoutPaymentMethodOptionSurchargeApiSchema
impl RefUnwindSafe for CheckoutPaymentMethodOptionSurchargeApiSchema
impl Send for CheckoutPaymentMethodOptionSurchargeApiSchema
impl Sync for CheckoutPaymentMethodOptionSurchargeApiSchema
impl Unpin for CheckoutPaymentMethodOptionSurchargeApiSchema
impl UnwindSafe for CheckoutPaymentMethodOptionSurchargeApiSchema
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