squareup 2.13.0

Rust SDK for the Square Developer API
Documentation
//! Model struct for SearchCustomersResponse type

use serde::Deserialize;

use super::{Customer, errors::Error};

/// This is a model struct for SearchCustomersResponse type
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
pub struct SearchCustomersResponse {
    /// A list of [Customer] objects that match the query conditions. The list is populated only if
    /// `return_entries` is set to `false` in the request.
    pub customers: Option<Vec<Customer>>,
    /// The pagination cursor to be used in a subsequent request. If unset, this is the final
    /// response. For more information, see
    /// [Pagination](https://developer.squareup.com/docs/basics/api101/pagination).
    pub cursor: Option<String>,
    /// [Error]s encountered during the search
    pub errors: Option<Vec<Error>>,
    /// The total count of customers associated with the Square account that match the search query.
    /// Only customer profiles with public information (given_name, family_name, company_name,
    /// email_address, or phone_number) are counted. This field is present only if count is set to
    /// true in the request.
    pub count: Option<i64>,
}