pub struct ExecAction {
pub command: Option<Vec<String>>,
}
Expand description
ExecAction describes a “run in container” action.
Fields§
§command: Option<Vec<String>>
Command is the command line to execute inside the container, the working directory for the command is root (‘/’) in the container’s filesystem. The command is simply exec’d, it is not run inside a shell, so traditional shell instructions (‘|’, etc) won’t work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
Trait Implementations§
Source§impl Clone for ExecAction
impl Clone for ExecAction
Source§fn clone(&self) -> ExecAction
fn clone(&self) -> ExecAction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExecAction
impl Debug for ExecAction
Source§impl DeepMerge for ExecAction
impl DeepMerge for ExecAction
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for ExecAction
impl Default for ExecAction
Source§fn default() -> ExecAction
fn default() -> ExecAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecAction
impl<'de> Deserialize<'de> for ExecAction
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExecAction
impl PartialEq for ExecAction
Source§impl Serialize for ExecAction
impl Serialize for ExecAction
impl StructuralPartialEq for ExecAction
Auto Trait Implementations§
impl Freeze for ExecAction
impl RefUnwindSafe for ExecAction
impl Send for ExecAction
impl Sync for ExecAction
impl Unpin for ExecAction
impl UnwindSafe for ExecAction
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