pub struct Run {
pub run: Vec<String>,
pub cache: Vec<Cache>,
pub bind: Vec<Bind>,
}
Expand description
Represents a run command
Fields§
§run: Vec<String>
The commands to run
cache: Vec<Cache>
The cache definitions during the run See https://docs.docker.com/reference/dockerfile/#run—mounttypecache
bind: Vec<Bind>
The file system bindings during the run This is used to mount a file or directory from the host into the container only during the run and it’s faster than a copy See https://docs.docker.com/reference/dockerfile/#run—mounttypebind
Implementations§
Trait Implementations§
Source§impl Patch<RunPatch> for Run
impl Patch<RunPatch> for Run
Source§fn into_patch(self) -> RunPatch
fn into_patch(self) -> RunPatch
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> RunPatch
fn into_patch_by_diff(self, previous_struct: Self) -> RunPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> RunPatch
fn new_empty_patch() -> RunPatch
Get an empty patch instance
impl StructuralPartialEq for Run
Auto Trait Implementations§
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnwindSafe for Run
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