pub struct CustomersApi { /* private fields */ }
Expand description
CustomerApi module
Implementations§
Source§impl CustomersApi
impl CustomersApi
Sourcepub fn new(config: SquareApiConfig, client: SquareHttpClient) -> Self
pub fn new(config: SquareApiConfig, client: SquareHttpClient) -> Self
Create a new CustomersApi
Sourcepub async fn create_customer<R: CreateCustomerRequest>(
&self,
request: R,
) -> Result<Box<dyn CreateCustomerResponse>, SquareApiError>
pub async fn create_customer<R: CreateCustomerRequest>( &self, request: R, ) -> Result<Box<dyn CreateCustomerResponse>, SquareApiError>
Use a create_customer endpoint
Auto Trait Implementations§
impl Freeze for CustomersApi
impl !RefUnwindSafe for CustomersApi
impl Send for CustomersApi
impl Sync for CustomersApi
impl Unpin for CustomersApi
impl !UnwindSafe for CustomersApi
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