pub struct Customer {
pub id: Option<u32>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub email: Option<String>,
pub customer_code: String,
pub phone: Option<String>,
pub metadata: Option<String>,
pub risk_action: Option<String>,
pub international_format_phone: Option<String>,
}
Expand description
This struct represents the Paystack customer data
Fields§
§id: Option<u32>
Customer’s Id.
first_name: Option<String>
Customer’s first name.
last_name: Option<String>
Customer’s last name.
email: Option<String>
Customer’s email address.
customer_code: String
Customer’s code.
phone: Option<String>
Customer’s phone number.
metadata: Option<String>
Customer’s metadata.
risk_action: Option<String>
Customer’s risk action.
international_format_phone: Option<String>
Customer’s phone number in international format.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Customer
impl<'de> Deserialize<'de> for Customer
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
Auto Trait Implementations§
impl RefUnwindSafe for Customer
impl Send for Customer
impl Sync for Customer
impl Unpin 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