square_api_client/models/
search_catalog_items_response.rs

1//! Response struct for the Search Catalog Items API
2
3use serde::Deserialize;
4
5use super::{errors::Error, CatalogObject};
6
7/// This is a model struct for SearchCatalogItemsResponse type
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
9pub struct SearchCatalogItemsResponse {
10    /// Any errors that occurred during the request.
11    pub errors: Option<Vec<Error>>,
12    /// Returned items matching the specified query expressions.
13    pub items: Option<Vec<CatalogObject>>,
14    /// Pagination token used in the next request to return more of the search result.
15    pub cursor: Option<String>,
16    /// Ids of returned item variations matching the specified query expression.
17    pub matched_variation_ids: Option<Vec<String>>,
18}