square_api_client/models/
search_catalog_objects_response.rs

1//! Response struct for the Search Catalog Objects API
2
3use serde::Deserialize;
4
5use super::{errors::Error, CatalogObject};
6
7/// This is a model struct for SearchCatalogObjectsResponse type
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
9pub struct SearchCatalogObjectsResponse {
10    /// Any errors that occurred during the request.
11    pub errors: Option<Vec<Error>>,
12    /// The pagination cursor to be used in a subsequent request. If unset, this is the final
13    /// response. See
14    /// [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information.
15    pub cursor: Option<String>,
16    /// The CatalogObjects returned.
17    pub objects: Option<Vec<CatalogObject>>,
18    /// A list of CatalogObjects referenced by the objects in the `objects` field.
19    pub related_objects: Option<Vec<CatalogObject>>,
20    /// When the associated product catalog was last updated. Will match the value for `end_time` or
21    /// `cursor` if either field is included in the `SearchCatalog` request.
22    pub latest_time: Option<String>,
23}