Skip to main content

autogen_squareup/models/
location_created_event_data.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 LocationCreatedEventData {
16    /// Name of the affected object’s type, `\"location\"`.
17    #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub r#type: Option<Option<String>>,
19    /// ID of the updated [Location](entity:Location).
20    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
21    pub id: Option<String>,
22}
23
24impl LocationCreatedEventData {
25    pub fn new() -> LocationCreatedEventData {
26        LocationCreatedEventData {
27            r#type: None,
28            id: None,
29        }
30    }
31}
32