Struct dockerfile_parser::CmdInstruction [−][src]
pub struct CmdInstruction {
pub span: Span,
pub expr: ShellOrExecExpr,
}
Expand description
A Dockerfile CMD
instruction.
An command may be defined as either a single string (to be run in the default shell), or a list of strings (to be run directly).
Fields
span: Span
expr: ShellOrExecExpr
Implementations
Unpacks this instruction into its inner value if it is a Shell-form instruction, otherwise returns None.
Unpacks this instruction into its inner value if it is a Shell-form instruction, otherwise returns None.
Unpacks this instruction into its inner value if it is an Exec-form instruction, otherwise returns None.
Unpacks this instruction into its inner value if it is an Exec-form instruction, otherwise returns None.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CmdInstruction
impl Send for CmdInstruction
impl Sync for CmdInstruction
impl Unpin for CmdInstruction
impl UnwindSafe for CmdInstruction
Blanket Implementations
Mutably borrows from an owned value. Read more