pub struct Cart {
pub currency: String,
pub specific_amount: i64,
}Expand description
Specify the payment currency and amount.
Fields§
§currency: StringCurrency code for the payment amount.
specific_amount: i64Payment amount, in cents. e.g. if you want to request €12.00, then the amount in cents is 1200.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cart
impl<'de> Deserialize<'de> for Cart
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
impl Eq for Cart
impl StructuralPartialEq for Cart
Auto Trait Implementations§
impl Forget for Cart
impl Freeze for Cart
impl Move for Cart
impl RefUnwindSafe for Cart
impl Send for Cart
impl Sync for Cart
impl Unpin for Cart
impl UnsafeUnpin for Cart
impl UnwindSafe for Cart
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