pub struct Customers<'a> { /* private fields */ }Implementations§
Source§impl<'a> Customers<'a>
impl<'a> Customers<'a>
Sourcepub async fn list(
self,
list_parameters: Vec<(String, String)>,
) -> Result<SquareResponse, SquareError>
pub async fn list( self, list_parameters: Vec<(String, String)>, ) -> Result<SquareResponse, SquareError>
Lists customer profiles associated with a Square account. Open in API Reference
Sourcepub async fn create(
self,
customer: Customer,
) -> Result<SquareResponse, SquareError>
pub async fn create( self, customer: Customer, ) -> Result<SquareResponse, SquareError>
Creates a new customer for a business. Open in API Reference
Sourcepub async fn search(
self,
customer_search_query: CustomerSearchQuery,
) -> Result<SquareResponse, SquareError>
pub async fn search( self, customer_search_query: CustomerSearchQuery, ) -> Result<SquareResponse, SquareError>
Searches the customer profiles associated with a Square account using a supported query filter. Open in API Reference
Sourcepub async fn delete(
self,
customer_to_delete: CustomerDelete,
) -> Result<SquareResponse, SquareError>
pub async fn delete( self, customer_to_delete: CustomerDelete, ) -> Result<SquareResponse, SquareError>
Deletes a customer profile from a business. Open in API Reference
Auto Trait Implementations§
impl<'a> Freeze for Customers<'a>
impl<'a> RefUnwindSafe for Customers<'a>
impl<'a> Send for Customers<'a>
impl<'a> Sync for Customers<'a>
impl<'a> Unpin for Customers<'a>
impl<'a> UnwindSafe for Customers<'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