Struct square_api_client::api::CustomerSegmentsApi
source · [−]pub struct CustomerSegmentsApi { /* private fields */ }
Expand description
Retrieve customer segments (also called smart groups) in a business account.
Implementations
sourceimpl CustomerSegmentsApi
impl CustomerSegmentsApi
pub fn new(config: Configuration, client: HttpClient) -> Self
sourcepub async fn list_customer_segments(
&self,
params: &ListCustomerSegmentsParameters
) -> Result<ListCustomerSegmentsResponse, ApiError>
pub async fn list_customer_segments(
&self,
params: &ListCustomerSegmentsParameters
) -> Result<ListCustomerSegmentsResponse, ApiError>
Retrieves the list of customer segments of a business.
sourcepub async fn retrieve_customer_segment(
&self,
segment_id: &str
) -> Result<RetrieveCustomerSegmentResponse, ApiError>
pub async fn retrieve_customer_segment(
&self,
segment_id: &str
) -> Result<RetrieveCustomerSegmentResponse, ApiError>
Retrieves a specific customer segment as identified by the segment_id
value.
Auto Trait Implementations
impl !RefUnwindSafe for CustomerSegmentsApi
impl Send for CustomerSegmentsApi
impl Sync for CustomerSegmentsApi
impl Unpin for CustomerSegmentsApi
impl !UnwindSafe for CustomerSegmentsApi
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more