Struct k8s_openapi::api::core::v1::ExecAction
source · 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§fn eq(&self, other: &ExecAction) -> bool
fn eq(&self, other: &ExecAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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