Skip to main content

autogen_squareup/models/
update_catalog_image_request.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 UpdateCatalogImageRequest {
16    /// A unique string that identifies this UpdateCatalogImage request. Keys can be any valid string but must be unique for every UpdateCatalogImage request.  See [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information.
17    #[serde(rename = "idempotency_key")]
18    pub idempotency_key: String,
19}
20
21impl UpdateCatalogImageRequest {
22    pub fn new(idempotency_key: String) -> UpdateCatalogImageRequest {
23        UpdateCatalogImageRequest {
24            idempotency_key,
25        }
26    }
27}
28