square_api_client/models/
retrieve_catalog_object_response.rs

1//! Response struct for Retrieve Catalog Object API
2
3use serde::Deserialize;
4
5use super::{errors::Error, CatalogObject};
6
7/// This is a model struct for RetrieveCatalogObjectResponse type
8#[derive(Clone, Debug, Deserialize, Default, Eq, PartialEq)]
9pub struct RetrieveCatalogObjectResponse {
10    /// Any errors that occurred during the request.
11    pub errors: Option<Vec<Error>>,
12    /// The `CatalogObject`s returned.
13    pub object: Option<CatalogObject>,
14    /// A list of `CatalogObject`s referenced by the object in the `object` field.
15    pub related_objects: Option<Vec<CatalogObject>>,
16}