square_api_client/models/
create_catalog_image_response.rs

1//! Response struct for the Create Catalog Image API
2
3use serde::Deserialize;
4
5use super::{errors::Error, CatalogObject};
6
7/// This is a model struct for CreateCatalogImageResponse type.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
9pub struct CreateCatalogImageResponse {
10    /// Any errors that occurred during the request.
11    pub errors: Option<Vec<Error>>,
12    /// The newly created `CatalogImage` including a Square-generated URL for the encapsulated image
13    /// file.
14    pub image: Option<CatalogObject>,
15}