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