square_api_client/models/list_customers_response.rs
1//! Model struct for ListCustomersResponse type
2
3use serde::{Deserialize, Serialize};
4
5use super::{errors::Error, Customer};
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}