#[non_exhaustive]pub struct ExecAction {
pub command: Vec<String>,
/* private fields */
}Available on crate features
dataset-service or job-service or model-garden-service or model-service or pipeline-service only.Expand description
ExecAction specifies a command to execute.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.command: 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.
Implementations§
Source§impl ExecAction
impl ExecAction
pub fn new() -> Self
Sourcepub fn set_command<T, V>(self, v: T) -> Self
pub fn set_command<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ExecAction
impl Clone for ExecAction
Source§fn clone(&self) -> ExecAction
fn clone(&self) -> ExecAction
Returns a duplicate 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 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 PartialEq for ExecAction
impl PartialEq 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