pub struct GetCustomerRequirements<'a> { /* private fields */ }Expand description
Builder for [Client::get_customer_requirements]
[`Client::get_customer_requirements`]: super::Client::get_customer_requirementsImplementations§
Source§impl<'a> GetCustomerRequirements<'a>
impl<'a> GetCustomerRequirements<'a>
pub fn new(client: &'a Client) -> Self
pub fn capabilities<V>(self, value: V) -> Self
pub fn citizenship<V>(self, value: V) -> Selfwhere
V: TryInto<CountryCode>,
pub fn country_code<V>(self, value: V) -> Selfwhere
V: TryInto<CountryCode>,
pub fn customer_type<V>(self, value: V) -> Selfwhere
V: TryInto<CustomerType>,
Sourcepub async fn send(self) -> Result<ResponseValue<RequirementsMap>, Error<Error>>
pub async fn send(self) -> Result<ResponseValue<RequirementsMap>, Error<Error>>
Sends a GET request to /v2/customers/requirements
Trait Implementations§
Source§impl<'a> Clone for GetCustomerRequirements<'a>
impl<'a> Clone for GetCustomerRequirements<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for GetCustomerRequirements<'a>
impl<'a> !UnwindSafe for GetCustomerRequirements<'a>
impl<'a> Freeze for GetCustomerRequirements<'a>
impl<'a> Send for GetCustomerRequirements<'a>
impl<'a> Sync for GetCustomerRequirements<'a>
impl<'a> Unpin for GetCustomerRequirements<'a>
impl<'a> UnsafeUnpin for GetCustomerRequirements<'a>
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