trifid/tfcli/src/api.rs

13 lines
235 B
Rust
Raw Normal View History

2023-06-16 00:49:06 +00:00
use serde::Deserialize;
#[derive(Deserialize)]
pub struct APIErrorResponse {
2023-11-23 20:23:52 +00:00
pub errors: Vec<APIError>,
2023-06-16 00:49:06 +00:00
}
#[derive(Deserialize)]
pub struct APIError {
pub code: String,
pub message: String,
2023-11-23 20:23:52 +00:00
pub path: Option<String>,
}