pub struct Bind {
    pub target: String,
    pub from: FromContext,
    pub source: Option<String>,
    pub readwrite: Option<bool>,
}Expand description
Represents file system binding during a run See https://docs.docker.com/reference/dockerfile/#run—mounttypebind
Fields§
§target: StringThe target path of the bind
from: FromContextThe base of the bind
source: Option<String>Subpath in the from to mount
readwrite: Option<bool>Defines if the bind is read and write
Trait Implementations§
source§impl From<ParsableStruct<BindPatch>> for Bind
 
impl From<ParsableStruct<BindPatch>> for Bind
source§fn from(value: ParsableStruct<BindPatch>) -> Self
 
fn from(value: ParsableStruct<BindPatch>) -> Self
Converts to this type from the input type.
source§impl Patch<BindPatch> for Bind
 
impl Patch<BindPatch> for Bind
source§fn into_patch(self) -> BindPatch
 
fn into_patch(self) -> BindPatch
Returns a patch that when applied turns any struct of the same type into 
Selfsource§fn into_patch_by_diff(self, previous_struct: Self) -> BindPatch
 
fn into_patch_by_diff(self, previous_struct: Self) -> BindPatch
Returns a patch that when applied turns 
previous_struct into Selfsource§fn new_empty_patch() -> BindPatch
 
fn new_empty_patch() -> BindPatch
Get an empty patch instance
source§impl Patch<ParsableStruct<BindPatch>> for Bind
 
impl Patch<ParsableStruct<BindPatch>> for Bind
source§fn apply(&mut self, patch: ParsableStruct<BindPatch>)
 
fn apply(&mut self, patch: ParsableStruct<BindPatch>)
Apply a patch
source§fn into_patch(self) -> ParsableStruct<BindPatch>
 
fn into_patch(self) -> ParsableStruct<BindPatch>
Returns a patch that when applied turns any struct of the same type into 
Selfsource§fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<BindPatch>
 
fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<BindPatch>
Returns a patch that when applied turns 
previous_struct into Selfsource§fn new_empty_patch() -> ParsableStruct<BindPatch>
 
fn new_empty_patch() -> ParsableStruct<BindPatch>
Get an empty patch instance
impl StructuralPartialEq for Bind
Auto Trait Implementations§
impl Freeze for Bind
impl RefUnwindSafe for Bind
impl Send for Bind
impl Sync for Bind
impl Unpin for Bind
impl UnwindSafe for Bind
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)