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§
Source§impl EntrypointInstruction
impl EntrypointInstruction
Sourcepub fn into_shell(self) -> Option<BreakableString>
pub fn into_shell(self) -> Option<BreakableString>
Unpacks this instruction into its inner value if it is a Shell-form instruction, otherwise returns None.
Sourcepub fn as_shell(&self) -> Option<&BreakableString>
pub fn as_shell(&self) -> Option<&BreakableString>
Unpacks this instruction into its inner value if it is a Shell-form instruction, otherwise returns None.
Sourcepub fn into_exec(self) -> Option<StringArray>
pub fn into_exec(self) -> Option<StringArray>
Unpacks this instruction into its inner value if it is an Exec-form instruction, otherwise returns None.
Sourcepub fn as_exec(&self) -> Option<&StringArray>
pub fn as_exec(&self) -> Option<&StringArray>
Unpacks this instruction into its inner value if it is an Exec-form instruction, otherwise returns None.
Trait Implementations§
Source§impl Clone for EntrypointInstruction
impl Clone for EntrypointInstruction
Source§fn clone(&self) -> EntrypointInstruction
fn clone(&self) -> EntrypointInstruction
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 EntrypointInstruction
impl Debug for EntrypointInstruction
Source§impl From<EntrypointInstruction> for Instruction
impl From<EntrypointInstruction> for Instruction
Source§fn from(ins: EntrypointInstruction) -> Self
fn from(ins: EntrypointInstruction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EntrypointInstruction
impl PartialEq for EntrypointInstruction
Source§impl TryFrom<Instruction> for EntrypointInstruction
impl TryFrom<Instruction> for EntrypointInstruction
impl Eq for EntrypointInstruction
impl StructuralPartialEq for EntrypointInstruction
Auto Trait Implementations§
impl Freeze for EntrypointInstruction
impl RefUnwindSafe for EntrypointInstruction
impl Send for EntrypointInstruction
impl Sync for EntrypointInstruction
impl Unpin for EntrypointInstruction
impl UnwindSafe for EntrypointInstruction
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