pub struct Customer { /* private fields */ }Expand description
Optional customer details attached to a payment request.
Implementations§
Source§impl Customer
impl Customer
Sourcepub fn with_email(self, email: impl Into<String>) -> Self
pub fn with_email(self, email: impl Into<String>) -> Self
Sets the email address.
Sourcepub fn with_phone(self, phone: PhoneNumber) -> Self
pub fn with_phone(self, phone: PhoneNumber) -> Self
Sets the phone number.
Sourcepub fn with_country(self, country: CountryCode) -> Self
pub fn with_country(self, country: CountryCode) -> Self
Sets the country.
Sourcepub const fn phone(&self) -> Option<&PhoneNumber>
pub const fn phone(&self) -> Option<&PhoneNumber>
Returns the phone number.
Sourcepub const fn country(&self) -> Option<&CountryCode>
pub const fn country(&self) -> Option<&CountryCode>
Returns the country.
Trait Implementations§
impl Eq for Customer
impl StructuralPartialEq for Customer
Auto Trait Implementations§
impl Freeze for Customer
impl RefUnwindSafe for Customer
impl Send for Customer
impl Sync for Customer
impl Unpin for Customer
impl UnsafeUnpin for Customer
impl UnwindSafe for Customer
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