podman_rest_client/v4/params/generate_systemd_libpod.rs
1#[derive(Default, Debug)]
2pub struct GenerateSystemdLibpod<'a> {
3 /// Use container/pod names instead of IDs.
4 pub use_name: Option<bool>,
5 /// Create a new container instead of starting an existing one.
6 pub new: Option<bool>,
7 /// Do not generate the header including the Podman version and the timestamp.
8 pub no_header: Option<bool>,
9 /// Start timeout in seconds.
10 pub start_timeout: Option<i64>,
11 /// Stop timeout in seconds.
12 pub stop_timeout: Option<i64>,
13 /// Systemd restart-policy.
14 pub restart_policy: Option<&'a str>,
15 /// Systemd unit name prefix for containers.
16 pub container_prefix: Option<&'a str>,
17 /// Systemd unit name prefix for pods.
18 pub pod_prefix: Option<&'a str>,
19 /// Systemd unit name separator between name/id and prefix.
20 pub separator: Option<&'a str>,
21 /// Configures the time to sleep before restarting a service.
22 pub restart_sec: Option<i64>,
23 /// Systemd Wants list for the container or pods.
24 pub wants: Option<Vec<&'a str>>,
25 /// Systemd After list for the container or pods.
26 pub after: Option<Vec<&'a str>>,
27 /// Systemd Requires list for the container or pods.
28 pub requires: Option<Vec<&'a str>>,
29 /// Set environment variables to the systemd unit files.
30 pub additional_env_variables: Option<Vec<&'a str>>,
31}