podman_rest_client/v5/models/
inspect_restart_policy.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// InspectRestartPolicy holds information about the container's restart policy.
4pub struct InspectRestartPolicy {
5    /// MaximumRetryCount is the maximum number of retries allowed if the
6    /// "on-failure" restart policy is in use. Not used if "on-failure" is
7    /// not set.
8    #[serde(rename = "MaximumRetryCount")]
9    pub maximum_retry_count: Option<u64>,
10    /// Name contains the container's restart policy.
11    /// Allowable values are "no" or "" (take no action),
12    /// "on-failure" (restart on non-zero exit code, with an optional max
13    /// retry count), and "always" (always restart on container stop, unless
14    /// explicitly requested by API).
15    /// Note that this is NOT actually a name of any sort - the poor naming
16    /// is for Docker compatibility.
17    #[serde(rename = "Name")]
18    pub name: Option<String>,
19}