1
2
3
4
5
6
7
8
9
10
11
12
//! Error response

use serde::Deserialize;

use crate::api::models::error::SquareError;

/// A generic error response from the Square API.
#[derive(Clone, Deserialize)]
pub struct ErrorResponse {
    /// The list of errors.
    pub errors: Vec<SquareError>,
}