pub struct ValidateCustomerRequest {
pub first_name: String,
pub last_name: String,
pub middle_name: Option<String>,
pub identification_type: IdentificationType,
pub value: Option<String>,
pub country: String,
pub bvn: String,
pub bank_code: String,
pub account_number: Option<String>,
}Fields§
§first_name: StringCustomer’s first name
last_name: StringCustomer’s last name
middle_name: Option<String>Customer’s middle name
identification_type: IdentificationTypePredefined types of identification. Only bank_code is supported at the moment
value: Option<String>Customer’s identification number
country: String2 letter country code of identification issuer
bvn: StringCustomer’s Bank Verification Number
bank_code: StringCustomer bank code
account_number: Option<String>Customer’s bank account number. (required if identification_type is bank_account.
Trait Implementations§
Source§impl Clone for ValidateCustomerRequest
impl Clone for ValidateCustomerRequest
Source§fn clone(&self) -> ValidateCustomerRequest
fn clone(&self) -> ValidateCustomerRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidateCustomerRequest
impl Debug for ValidateCustomerRequest
Source§impl Default for ValidateCustomerRequest
impl Default for ValidateCustomerRequest
Source§fn default() -> ValidateCustomerRequest
fn default() -> ValidateCustomerRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValidateCustomerRequest
impl<'de> Deserialize<'de> for ValidateCustomerRequest
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 Freeze for ValidateCustomerRequest
impl RefUnwindSafe for ValidateCustomerRequest
impl Send for ValidateCustomerRequest
impl Sync for ValidateCustomerRequest
impl Unpin for ValidateCustomerRequest
impl UnwindSafe for ValidateCustomerRequest
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