pub struct Cart {
pub merchant_id: String,
pub merchant_name: String,
pub currency: String,
pub lines: Vec<Line>,
pub subtotal: i64,
}Expand description
The cart (one merchant at a time).
Fields§
§merchant_id: StringThe merchant’s id (empty: an empty cart).
merchant_name: StringThe merchant’s name.
currency: StringISO code (PHP).
lines: Vec<Line>The lines.
subtotal: i64The lines’ sum, minor units.
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 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