pub struct Cart {
pub cart_id: Option<String>,
pub lines: Vec<CartLine>,
pub subtotal: Option<Money>,
pub adjustments: Vec<PriceAdjustment>,
pub total: Money,
pub affiliate_attribution: Option<AffiliateAttribution>,
pub extensions: ProtocolExtensions,
}Available on crate feature
payments only.Expand description
Canonical cart contents and totals.
Fields§
§cart_id: Option<String>§lines: Vec<CartLine>§subtotal: Option<Money>§adjustments: Vec<PriceAdjustment>§total: Money§affiliate_attribution: Option<AffiliateAttribution>§extensions: ProtocolExtensionsTrait Implementations§
Source§impl<'de> Deserialize<'de> for Cart
impl<'de> Deserialize<'de> for Cart
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Cart, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Cart, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Cart
impl Serialize for Cart
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Cart
Auto Trait Implementations§
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