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: String
The target path of the bind
from: FromContext
The base of the bind
source: Option<String>
Source path in the from. Defaults to the root of the from
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
Self
Source§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 Self
Source§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
Self
Source§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 Self
Source§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