square_api_client/models/create_location_response.rs
1//! Model struct for CreateLocationResponse type
2
3use serde::Deserialize;
4
5use super::{errors::Error, Location};
6
7/// This is a model struct for CreateLocationResponse type
8#[derive(Clone, Debug, Deserialize, PartialEq)]
9pub struct CreateLocationResponse {
10 /// Information about [errors](https://developer.squareup.com/docs/build-basics/handling-errors)
11 /// encountered during the request.
12 pub errors: Option<Vec<Error>>,
13 /// The newly created [Location] object.
14 pub location: Option<Location>,
15}