square_api_client/models/
list_customer_segments_response.rs

1//! Response struct for the List Customer Segments API
2
3use serde::Deserialize;
4
5use super::{errors::Error, CustomerSegment};
6
7/// This is a model struct for ListCustomerSegmentsResponse type
8#[derive(Clone, Debug, Deserialize, Eq, PartialEq)]
9pub struct ListCustomerSegmentsResponse {
10    /// Any errors that occurred during the request.
11    pub errors: Option<Vec<Error>>,
12    /// A list of customer segments belonging to the associated Square account.
13    pub segments: Option<Vec<CustomerSegment>>,
14    /// A pagination cursor to be used in subsequent calls to `ListCustomerSegments` to retrieve the
15    /// next set of query results. The cursor is only present if the request succeeded and
16    /// additional results are available.
17    ///
18    /// For more information, see
19    /// [Pagination](https://developer.squareup.com/docs/basics/api101/pagination).
20    pub cursor: Option<String>,
21}