Struct dockerfile_parser::EntrypointInstruction [−][src]
pub struct EntrypointInstruction {
pub span: Span,
pub expr: ShellOrExecExpr,
}
Expand description
A Dockerfile ENTRYPOINT
instruction.
An entrypoint 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 EntrypointInstruction
impl Send for EntrypointInstruction
impl Sync for EntrypointInstruction
impl Unpin for EntrypointInstruction
impl UnwindSafe for EntrypointInstruction
Blanket Implementations
Mutably borrows from an owned value. Read more