trifid/tfcli/src/api.rs

12 lines
232 B
Rust
Raw Normal View History

2023-06-16 00:49:06 +00:00
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>
}