square_api_client/models/
list_customer_groups_response.rs

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