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