Struct square_rust::api::customers::CustomersApi
source · 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 !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