podman_rest_client/v5/models/
container_exec_body.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3pub struct ContainerExecBody {
4    /// Attach to stderr of the exec command
5    #[serde(rename = "AttachStderr")]
6    pub attach_stderr: Option<bool>,
7    /// Attach to stdin of the exec command
8    #[serde(rename = "AttachStdin")]
9    pub attach_stdin: Option<bool>,
10    /// Attach to stdout of the exec command
11    #[serde(rename = "AttachStdout")]
12    pub attach_stdout: Option<bool>,
13    /// Command to run, as a string or array of strings.
14    #[serde(rename = "Cmd")]
15    pub cmd: Option<Vec<String>>,
16    /// "Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _."
17    #[serde(rename = "DetachKeys")]
18    pub detach_keys: Option<String>,
19    /// A list of environment variables in the form ["VAR=value", ...]
20    #[serde(rename = "Env")]
21    pub env: Option<Vec<String>>,
22    /// Runs the exec process with extended privileges
23    #[serde(rename = "Privileged")]
24    pub privileged: Option<bool>,
25    /// Allocate a pseudo-TTY
26    #[serde(rename = "Tty")]
27    pub tty: Option<bool>,
28    /// "The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid."
29    #[serde(rename = "User")]
30    pub user: Option<String>,
31    /// The working directory for the exec process inside the container.
32    #[serde(rename = "WorkingDir")]
33    pub working_dir: Option<String>,
34}