pub struct PaymentResponse {
pub request_id: String,
pub method_name: String,
pub details: Option<HashMap<String, Value>>,
pub shipping_address: Option<ContactAddress>,
pub shipping_option: Option<PaymentShippingOption>,
pub payer_name: Option<String>,
pub payer_email: Option<String>,
pub payer_phone: Option<String>,
}Expand description
Indicates the user has chosen a payment method and approved a payment request.
See: https://www.w3.org/TR/payment-request/#paymentresponse-interface
Fields§
§request_id: StringUnique ID from the original PaymentRequest.
method_name: StringPayment method chosen by the user.
details: Option<HashMap<String, Value>>Payment-method-specific transaction data.
shipping_address: Option<ContactAddress>§shipping_option: Option<PaymentShippingOption>§payer_name: Option<String>§payer_email: Option<String>§payer_phone: Option<String>Trait Implementations§
Source§impl Clone for PaymentResponse
impl Clone for PaymentResponse
Source§fn clone(&self) -> PaymentResponse
fn clone(&self) -> PaymentResponse
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 PaymentResponse
impl Debug for PaymentResponse
Source§impl<'de> Deserialize<'de> for PaymentResponse
impl<'de> Deserialize<'de> for PaymentResponse
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 PaymentResponse
impl PartialEq for PaymentResponse
Source§fn eq(&self, other: &PaymentResponse) -> bool
fn eq(&self, other: &PaymentResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaymentResponse
impl Serialize for PaymentResponse
impl StructuralPartialEq for PaymentResponse
Auto Trait Implementations§
impl Freeze for PaymentResponse
impl RefUnwindSafe for PaymentResponse
impl Send for PaymentResponse
impl Sync for PaymentResponse
impl Unpin for PaymentResponse
impl UnsafeUnpin for PaymentResponse
impl UnwindSafe for PaymentResponse
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