12 lines
232 B
Rust
12 lines
232 B
Rust
|
use serde::Deserialize;
|
||
|
|
||
|
#[derive(Deserialize)]
|
||
|
pub struct APIErrorResponse {
|
||
|
pub errors: Vec<APIError>
|
||
|
}
|
||
|
#[derive(Deserialize)]
|
||
|
pub struct APIError {
|
||
|
pub code: String,
|
||
|
pub message: String,
|
||
|
pub path: Option<String>
|
||
|
}
|