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