1
2
3
4
5
6
7
8
9
10
11
use serde::{Deserialize, Serialize};
#[derive(Default, Debug, Serialize, Deserialize)]
/// ErrorModel is used in remote connections with podman
pub struct ErrorModel {
    /// API root cause formatted for automated parsing
    pub cause: Option<String>,
    /// human error message, formatted for a human to read
    pub message: Option<String>,
    /// HTTP response code
    pub response: Option<i64>,
}