pub enum Instruction {
Show 17 variants
Add(Add),
Arg(Arg),
Cmd(Cmd),
Copy(Copy),
Entrypoint(Entrypoint),
Env(Env),
Expose(Expose),
HealthCheck(HealthCheck),
Label(Label),
Maintainer(Maintainer),
OnBuild(OnBuild),
Run(Run),
Shell(Shell),
StopSignal(StopSignal),
User(User),
Volume(Volume),
Workdir(WorkDir),
}Expand description
The Instruction is one of the 3 core units of the Dockerfile Rust Intermediate Representation
It directly represents a typed version of Dockerfile Instruction.
Note that the From Instruction is not available, this is becuase each stage can only have one From instruction so it is defined in the stage
Variants§
Add(Add)
Arg(Arg)
Cmd(Cmd)
Copy(Copy)
Entrypoint(Entrypoint)
Env(Env)
Expose(Expose)
HealthCheck(HealthCheck)
Label(Label)
Maintainer(Maintainer)
OnBuild(OnBuild)
Run(Run)
Shell(Shell)
StopSignal(StopSignal)
User(User)
Volume(Volume)
Workdir(WorkDir)
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
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 Instruction
impl Debug for Instruction
Auto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
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