pub struct CartContents {
pub id: String,
pub user_cart_confirmation_required: bool,
pub payment_request: PaymentRequest,
pub cart_expiry: String,
pub merchant_name: String,
}Expand description
The detailed contents of a cart, signed by the merchant.
Fields§
§id: StringUnique identifier for this cart.
user_cart_confirmation_required: boolWhether the merchant requires user confirmation before purchase.
payment_request: PaymentRequestW3C PaymentRequest containing items, prices, and accepted methods.
cart_expiry: StringWhen this cart expires, in ISO 8601 format.
merchant_name: StringName of the merchant.
Trait Implementations§
Source§impl Clone for CartContents
impl Clone for CartContents
Source§fn clone(&self) -> CartContents
fn clone(&self) -> CartContents
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 moreSource§impl Debug for CartContents
impl Debug for CartContents
Source§impl<'de> Deserialize<'de> for CartContents
impl<'de> Deserialize<'de> for CartContents
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
Source§impl PartialEq for CartContents
impl PartialEq for CartContents
Source§fn eq(&self, other: &CartContents) -> bool
fn eq(&self, other: &CartContents) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CartContents
impl Serialize for CartContents
impl StructuralPartialEq for CartContents
Auto Trait Implementations§
impl Freeze for CartContents
impl RefUnwindSafe for CartContents
impl Send for CartContents
impl Sync for CartContents
impl Unpin for CartContents
impl UnsafeUnpin for CartContents
impl UnwindSafe for CartContents
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