pub struct PaymentOptions {
pub request_payer_name: Option<bool>,
pub request_payer_email: Option<bool>,
pub request_payer_phone: Option<bool>,
pub request_shipping: Option<bool>,
pub shipping_type: Option<String>,
}Expand description
Options controlling what payer information to collect.
See: https://www.w3.org/TR/payment-request/#dom-paymentoptions
Fields§
§request_payer_name: Option<bool>§request_payer_email: Option<bool>§request_payer_phone: Option<bool>§request_shipping: Option<bool>§shipping_type: Option<String>One of "shipping", "delivery", or "pickup".
Trait Implementations§
Source§impl Clone for PaymentOptions
impl Clone for PaymentOptions
Source§fn clone(&self) -> PaymentOptions
fn clone(&self) -> PaymentOptions
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 PaymentOptions
impl Debug for PaymentOptions
Source§impl Default for PaymentOptions
impl Default for PaymentOptions
Source§impl<'de> Deserialize<'de> for PaymentOptions
impl<'de> Deserialize<'de> for PaymentOptions
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 PaymentOptions
impl PartialEq for PaymentOptions
Source§fn eq(&self, other: &PaymentOptions) -> bool
fn eq(&self, other: &PaymentOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaymentOptions
impl Serialize for PaymentOptions
impl StructuralPartialEq for PaymentOptions
Auto Trait Implementations§
impl Freeze for PaymentOptions
impl RefUnwindSafe for PaymentOptions
impl Send for PaymentOptions
impl Sync for PaymentOptions
impl Unpin for PaymentOptions
impl UnsafeUnpin for PaymentOptions
impl UnwindSafe for PaymentOptions
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