pub struct PaymentDetailsModifier {
pub supported_methods: String,
pub total: Option<PaymentItem>,
pub additional_display_items: Option<Vec<PaymentItem>>,
pub data: Option<HashMap<String, Value>>,
}Expand description
A price modifier that applies when a specific payment method is selected.
See: https://www.w3.org/TR/payment-request/#dom-paymentdetailsmodifier
Fields§
§supported_methods: StringThe payment method ID this modifier applies to.
total: Option<PaymentItem>Overrides the original item total for this method.
additional_display_items: Option<Vec<PaymentItem>>Additional line items for this payment method.
data: Option<HashMap<String, Value>>Payment-method-specific data for the modifier.
Trait Implementations§
Source§impl Clone for PaymentDetailsModifier
impl Clone for PaymentDetailsModifier
Source§fn clone(&self) -> PaymentDetailsModifier
fn clone(&self) -> PaymentDetailsModifier
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 PaymentDetailsModifier
impl Debug for PaymentDetailsModifier
Source§impl<'de> Deserialize<'de> for PaymentDetailsModifier
impl<'de> Deserialize<'de> for PaymentDetailsModifier
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 PaymentDetailsModifier
impl PartialEq for PaymentDetailsModifier
Source§fn eq(&self, other: &PaymentDetailsModifier) -> bool
fn eq(&self, other: &PaymentDetailsModifier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaymentDetailsModifier
impl Serialize for PaymentDetailsModifier
impl StructuralPartialEq for PaymentDetailsModifier
Auto Trait Implementations§
impl Freeze for PaymentDetailsModifier
impl RefUnwindSafe for PaymentDetailsModifier
impl Send for PaymentDetailsModifier
impl Sync for PaymentDetailsModifier
impl Unpin for PaymentDetailsModifier
impl UnsafeUnpin for PaymentDetailsModifier
impl UnwindSafe for PaymentDetailsModifier
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