Skip to main content

autogen_squareup/models/
delete_location_custom_attribute_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/// DeleteLocationCustomAttributeResponse : Represents a [DeleteLocationCustomAttribute](api-endpoint:LocationCustomAttributes-DeleteLocationCustomAttribute) response. Either an empty object `{}` (for a successful deletion) or `errors` is present in the response.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DeleteLocationCustomAttributeResponse {
17    /// Any errors that occurred during the request.
18    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
19    pub errors: Option<Vec<models::Error>>,
20}
21
22impl DeleteLocationCustomAttributeResponse {
23    /// Represents a [DeleteLocationCustomAttribute](api-endpoint:LocationCustomAttributes-DeleteLocationCustomAttribute) response. Either an empty object `{}` (for a successful deletion) or `errors` is present in the response.
24    pub fn new() -> DeleteLocationCustomAttributeResponse {
25        DeleteLocationCustomAttributeResponse {
26            errors: None,
27        }
28    }
29}
30