Struct squareup::models::PrePopulatedData
source · pub struct PrePopulatedData {
pub buyer_email: Option<String>,
pub buyer_phone_number: Option<String>,
pub buyer_address: Option<Address>,
}Fields§
§buyer_email: Option<String>The buyer email to prepopulate in the payment form.
buyer_phone_number: Option<String>The buyer phone number to prepopulate in the payment form.
buyer_address: Option<Address>The buyer address to prepopulate in the payment form.
Implementations§
source§impl PrePopulatedData
impl PrePopulatedData
sourcepub fn new() -> PrePopulatedData
pub fn new() -> PrePopulatedData
Describes buyer data to prepopulate in the payment form. For more information, see Optional Checkout Configurations.
pub fn with_buyer_email(self, buyer_email: String) -> PrePopulatedData
pub fn reset_buyer_email(&mut self)
pub fn with_buyer_phone_number( self, buyer_phone_number: String ) -> PrePopulatedData
pub fn reset_buyer_phone_number(&mut self)
pub fn with_buyer_address(self, buyer_address: Address) -> PrePopulatedData
pub fn reset_buyer_address(&mut self)
Trait Implementations§
source§impl Clone for PrePopulatedData
impl Clone for PrePopulatedData
source§fn clone(&self) -> PrePopulatedData
fn clone(&self) -> PrePopulatedData
Returns a copy of the value. Read more
1.0.0 · 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 PrePopulatedData
impl Debug for PrePopulatedData
source§impl Default for PrePopulatedData
impl Default for PrePopulatedData
source§impl<'de> Deserialize<'de> for PrePopulatedData
impl<'de> Deserialize<'de> for PrePopulatedData
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 PrePopulatedData
impl PartialEq for PrePopulatedData
source§fn eq(&self, other: &PrePopulatedData) -> bool
fn eq(&self, other: &PrePopulatedData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for PrePopulatedData
impl Serialize for PrePopulatedData
impl Eq for PrePopulatedData
impl StructuralPartialEq for PrePopulatedData
Auto Trait Implementations§
impl RefUnwindSafe for PrePopulatedData
impl Send for PrePopulatedData
impl Sync for PrePopulatedData
impl Unpin for PrePopulatedData
impl UnwindSafe for PrePopulatedData
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.