square_api_client/models/
search_customers_response.rs

1//! Model struct for SearchCustomersResponse type
2
3use serde::Deserialize;
4
5use super::{errors::Error, Customer};
6
7/// This is a model struct for SearchCustomersResponse type
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
9pub struct SearchCustomersResponse {
10    /// A list of [Customer] objects that match the query conditions. The list is populated only if
11    /// `return_entries` is set to `false` in the request.
12    pub customers: Option<Vec<Customer>>,
13    /// The pagination cursor to be used in a subsequent request. If unset, this is the final
14    /// response. For more information, see
15    /// [Pagination](https://developer.squareup.com/docs/basics/api101/pagination).
16    pub cursor: Option<String>,
17    /// [Error]s encountered during the search
18    pub errors: Option<Vec<Error>>,
19}