pub enum Instruction {
Show 16 variants
Add {
checksum: Option<String>,
chown: Option<String>,
chmod: Option<String>,
link: Option<String>,
sources: Vec<String>,
destination: String,
},
Arg {
name: String,
default: Option<String>,
},
Cmd(Vec<String>),
Copy {
from: Option<String>,
chown: Option<String>,
chmod: Option<String>,
link: Option<String>,
sources: Vec<String>,
destination: String,
},
Entrypoint(Vec<String>),
Env(HashMap<String, String>),
Expose {
port: String,
protocol: Option<Protocol>,
},
From {
platform: Option<String>,
image: String,
alias: Option<String>,
},
Label(HashMap<String, String>),
Run {
mount: Option<String>,
network: Option<String>,
security: Option<String>,
command: Vec<String>,
},
Shell(Vec<String>),
User {
user: String,
group: Option<String>,
},
Volume {
mounts: Vec<String>,
},
Workdir {
path: String,
},
Comment(String),
Empty,
}
Variants§
Add
Fields
Arg
Cmd(Vec<String>)
Copy
Fields
Entrypoint(Vec<String>)
Env(HashMap<String, String>)
Expose
From
Label(HashMap<String, String>)
Run
Shell(Vec<String>)
User
Volume
Workdir
Comment(String)
Empty
Trait Implementations§
Source§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