pub enum Instruction {
Show 17 variants
From {
image: String,
tag: Option<String>,
span: Range<usize>,
},
Run {
command: String,
span: Range<usize>,
},
Copy {
src: String,
dest: String,
span: Range<usize>,
},
Add {
src: String,
dest: String,
span: Range<usize>,
},
Workdir {
path: String,
span: Range<usize>,
},
Expose {
port: String,
span: Range<usize>,
},
Env {
key: String,
value: String,
span: Range<usize>,
},
Cmd {
command: String,
span: Range<usize>,
},
Entrypoint {
command: String,
span: Range<usize>,
},
Volume {
path: String,
span: Range<usize>,
},
User {
user: String,
span: Range<usize>,
},
Label {
key: String,
value: String,
span: Range<usize>,
},
Arg {
name: String,
default: Option<String>,
span: Range<usize>,
},
Onbuild {
instruction: Box<Instruction>,
span: Range<usize>,
},
Stopsignal {
signal: String,
span: Range<usize>,
},
Healthcheck {
command: String,
span: Range<usize>,
},
Shell {
shell: String,
span: Range<usize>,
},
}Expand description
A Dockerfile instruction.
Variants§
From
A FROM instruction.
Fields
Run
A RUN instruction.
Copy
A COPY instruction.
Add
An ADD instruction.
Workdir
A WORKDIR instruction.
Expose
An EXPOSE instruction.
Env
An ENV instruction.
Fields
Cmd
A CMD instruction.
Entrypoint
An ENTRYPOINT instruction.
Volume
A VOLUME instruction.
User
A USER instruction.
Label
A LABEL instruction.
Fields
Arg
An ARG instruction.
Fields
Onbuild
An ONBUILD instruction.
Stopsignal
A STOPSIGNAL instruction.
Healthcheck
A HEALTHCHECK instruction.
Shell
A SHELL instruction.
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
Source§impl PartialEq for Instruction
impl PartialEq for Instruction
impl StructuralPartialEq 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 UnsafeUnpin 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