square_api_client/models/
retrieve_inventory_count_response.rs

1//! Response struct for the Retrieve Inventory Count  API
2
3use serde::Deserialize;
4
5use super::{errors::Error, InventoryCount};
6
7/// This is a model struct for RetrieveInventoryCountResponse type.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
9pub struct RetrieveInventoryCountResponse {
10    /// The current calculated inventory counts for the requested object and locations.
11    pub counts: Option<Vec<InventoryCount>>,
12    /// The pagination cursor to be used in a subsequent request. If unset, this is the final
13    /// response. For more information, see
14    /// [Pagination](https://developer.squareup.com/docs/basics/api101/pagination).
15    pub cursor: Option<String>,
16    /// [Error]s encountered during the search
17    pub errors: Option<Vec<Error>>,
18}