pub struct CheckoutProPayer {
pub identification: PersonalIdentification,
pub name: Option<String>,
pub surname: Option<String>,
pub phone: Option<Phone>,
pub address: Option<Address>,
/* private fields */
}Expand description
A payer will ALWAYS have a PersonalIdentification, and an email since it’s the bare minimum.
Fields§
§identification: PersonalIdentification§name: Option<String>§surname: Option<String>§phone: Option<Phone>§address: Option<Address>Implementations§
Source§impl CheckoutProPayer
impl CheckoutProPayer
pub fn validate(&self) -> bool
pub fn standard_payer<II>( email: String, document_type: DocumentType, document_number: II, ) -> Self
pub fn minimal_payer<II>( email: String, document_type: DocumentType, document_number: II, ) -> Self
Trait Implementations§
Source§impl Clone for CheckoutProPayer
impl Clone for CheckoutProPayer
Source§fn clone(&self) -> CheckoutProPayer
fn clone(&self) -> CheckoutProPayer
Returns a duplicate 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 CheckoutProPayer
impl Debug for CheckoutProPayer
Source§impl Default for CheckoutProPayer
impl Default for CheckoutProPayer
Source§fn default() -> CheckoutProPayer
fn default() -> CheckoutProPayer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CheckoutProPayer
impl<'de> Deserialize<'de> for CheckoutProPayer
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 CheckoutProPayer
impl PartialEq for CheckoutProPayer
Source§impl Serialize for CheckoutProPayer
impl Serialize for CheckoutProPayer
impl StructuralPartialEq for CheckoutProPayer
Auto Trait Implementations§
impl Freeze for CheckoutProPayer
impl RefUnwindSafe for CheckoutProPayer
impl Send for CheckoutProPayer
impl Sync for CheckoutProPayer
impl Unpin for CheckoutProPayer
impl UnwindSafe for CheckoutProPayer
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