Skip to main content

autogen_squareup/models/
create_catalog_image_response.rs

1/*
2 * Square
3 *
4 * Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.
5 *
6 * The version of the OpenAPI document: 2.0
7 * Contact: developers@squareup.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CreateCatalogImageResponse {
16    /// Any errors that occurred during the request.
17    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
18    pub errors: Option<Vec<models::Error>>,
19    #[serde(rename = "image", skip_serializing_if = "Option::is_none")]
20    pub image: Option<Box<models::CatalogObject>>,
21}
22
23impl CreateCatalogImageResponse {
24    pub fn new() -> CreateCatalogImageResponse {
25        CreateCatalogImageResponse {
26            errors: None,
27            image: None,
28        }
29    }
30}
31