pub struct GenerateSystemdLibpod<'a> {Show 14 fields
pub use_name: Option<bool>,
pub new: Option<bool>,
pub no_header: Option<bool>,
pub start_timeout: Option<i64>,
pub stop_timeout: Option<i64>,
pub restart_policy: Option<&'a str>,
pub container_prefix: Option<&'a str>,
pub pod_prefix: Option<&'a str>,
pub separator: Option<&'a str>,
pub restart_sec: Option<i64>,
pub wants: Option<Vec<&'a str>>,
pub after: Option<Vec<&'a str>>,
pub requires: Option<Vec<&'a str>>,
pub additional_env_variables: Option<Vec<&'a str>>,
}
Available on crate feature
v5
only.Fields§
§use_name: Option<bool>
Use container/pod names instead of IDs.
new: Option<bool>
Create a new container instead of starting an existing one.
no_header: Option<bool>
Do not generate the header including the Podman version and the timestamp.
start_timeout: Option<i64>
Start timeout in seconds.
stop_timeout: Option<i64>
Stop timeout in seconds.
restart_policy: Option<&'a str>
Systemd restart-policy.
container_prefix: Option<&'a str>
Systemd unit name prefix for containers.
pod_prefix: Option<&'a str>
Systemd unit name prefix for pods.
separator: Option<&'a str>
Systemd unit name separator between name/id and prefix.
restart_sec: Option<i64>
Configures the time to sleep before restarting a service.
wants: Option<Vec<&'a str>>
Systemd Wants list for the container or pods.
after: Option<Vec<&'a str>>
Systemd After list for the container or pods.
requires: Option<Vec<&'a str>>
Systemd Requires list for the container or pods.
additional_env_variables: Option<Vec<&'a str>>
Set environment variables to the systemd unit files.
Trait Implementations§
Source§impl<'a> Debug for GenerateSystemdLibpod<'a>
impl<'a> Debug for GenerateSystemdLibpod<'a>
Source§impl<'a> Default for GenerateSystemdLibpod<'a>
impl<'a> Default for GenerateSystemdLibpod<'a>
Source§fn default() -> GenerateSystemdLibpod<'a>
fn default() -> GenerateSystemdLibpod<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for GenerateSystemdLibpod<'a>
impl<'a> RefUnwindSafe for GenerateSystemdLibpod<'a>
impl<'a> Send for GenerateSystemdLibpod<'a>
impl<'a> Sync for GenerateSystemdLibpod<'a>
impl<'a> Unpin for GenerateSystemdLibpod<'a>
impl<'a> UnwindSafe for GenerateSystemdLibpod<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more