square_rust/api/models/objects/
error_response.rs

1//! Error response
2
3use serde::Deserialize;
4
5use crate::api::models::objects::error::SquareError;
6
7/// A generic error response from the Square API.
8#[derive(Clone, Deserialize)]
9pub struct ErrorResponse {
10    /// The list of errors.
11    pub errors: Vec<SquareError>,
12}