squareup/models/
list_customers_response.rs

1//! Model struct for ListCustomersResponse type
2
3use serde::{Deserialize, Serialize};
4
5use super::{Customer, errors::Error};
6
7/// This is a model struct for ListCustomersResponse type
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9pub struct ListCustomersResponse {
10    /// Information on errors encountered during the request.
11    pub errors: Option<Vec<Error>>,
12    /// The requested list of `Customers`.
13    pub customers: Option<Vec<Customer>>,
14    /// The pagination cursor to be used in a subsequent request. If empty, this is the final
15    /// response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for
16    /// more information.
17    pub cursor: Option<String>,
18    /// The total count of customers associated with the Square account. Only customer profiles with public
19    /// information (given_name, family_name, company_name, email_address, or phone_number) are counted.
20    /// This field is present only if count is set to true in the request.
21    pub count: Option<i64>,
22}