podman_rest_client/v5/models/inspect_exec_session.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// InspectExecSession contains information about a given exec session.
4pub struct InspectExecSession {
5    /// CanRemove is legacy and used purely for compatibility reasons.
6    /// Will always be set to true, unless the exec session is running.
7    #[serde(rename = "CanRemove")]
8    pub can_remove: Option<bool>,
9    /// ContainerID is the ID of the container this exec session is attached
10    /// to.
11    #[serde(rename = "ContainerID")]
12    pub container_id: Option<String>,
13    /// DetachKeys are the detach keys used by the exec session.
14    /// If set to "" the default keys are being used.
15    /// Will show "<none>" if no detach keys are set.
16    #[serde(rename = "DetachKeys")]
17    pub detach_keys: Option<String>,
18    /// ExitCode is the exit code of the exec session. Will be set to 0 if
19    /// the exec session has not yet exited.
20    #[serde(rename = "ExitCode")]
21    pub exit_code: Option<i64>,
22    /// ID is the ID of the exec session.
23    #[serde(rename = "ID")]
24    pub id: Option<String>,
25    /// OpenStderr is whether the container's STDERR stream will be attached.
26    /// Always set to true if the exec session created a TTY.
27    #[serde(rename = "OpenStderr")]
28    pub open_stderr: Option<bool>,
29    /// OpenStdin is whether the container's STDIN stream will be attached
30    /// to.
31    #[serde(rename = "OpenStdin")]
32    pub open_stdin: Option<bool>,
33    /// OpenStdout is whether the container's STDOUT stream will be attached.
34    /// Always set to true if the exec session created a TTY.
35    #[serde(rename = "OpenStdout")]
36    pub open_stdout: Option<bool>,
37    /// Pid is the PID of the exec session's process.
38    /// Will be set to 0 if the exec session is not running.
39    #[serde(rename = "Pid")]
40    pub pid: Option<i64>,
41    #[serde(rename = "ProcessConfig")]
42    pub process_config: Option<crate::v5::models::InspectExecProcess>,
43    /// Running is whether the exec session is running.
44    #[serde(rename = "Running")]
45    pub running: Option<bool>,
46}