pub struct PaymentDetailsInit {
pub id: String,
pub display_items: Vec<PaymentItem>,
pub shipping_options: Option<Vec<PaymentShippingOption>>,
pub modifiers: Option<Vec<PaymentDetailsModifier>>,
pub total: PaymentItem,
}Expand description
Details of the payment being requested.
See: https://www.w3.org/TR/payment-request/#dom-paymentdetailsinit
Fields§
§id: StringUnique identifier for this payment request.
display_items: Vec<PaymentItem>Line items to display to the user.
shipping_options: Option<Vec<PaymentShippingOption>>Available shipping options.
modifiers: Option<Vec<PaymentDetailsModifier>>Price modifiers for particular payment methods.
total: PaymentItemTotal payment amount.
Trait Implementations§
Source§impl Clone for PaymentDetailsInit
impl Clone for PaymentDetailsInit
Source§fn clone(&self) -> PaymentDetailsInit
fn clone(&self) -> PaymentDetailsInit
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 PaymentDetailsInit
impl Debug for PaymentDetailsInit
Source§impl<'de> Deserialize<'de> for PaymentDetailsInit
impl<'de> Deserialize<'de> for PaymentDetailsInit
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 PaymentDetailsInit
impl PartialEq for PaymentDetailsInit
Source§fn eq(&self, other: &PaymentDetailsInit) -> bool
fn eq(&self, other: &PaymentDetailsInit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaymentDetailsInit
impl Serialize for PaymentDetailsInit
impl StructuralPartialEq for PaymentDetailsInit
Auto Trait Implementations§
impl Freeze for PaymentDetailsInit
impl RefUnwindSafe for PaymentDetailsInit
impl Send for PaymentDetailsInit
impl Sync for PaymentDetailsInit
impl Unpin for PaymentDetailsInit
impl UnsafeUnpin for PaymentDetailsInit
impl UnwindSafe for PaymentDetailsInit
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