pub struct Copy {
pub from: FromContext,
pub paths: Vec<String>,
pub options: CopyOptions,
pub exclude: Vec<String>,
pub parents: Option<bool>,
}
Expand description
Represents the COPY instruction in a Dockerfile. See https://docs.docker.com/reference/dockerfile/#copy
Fields§
§from: FromContext
The origin of the copy See https://docs.docker.com/reference/dockerfile/#copy—from
paths: Vec<String>
The paths to copy
options: CopyOptions
The options of the copy
exclude: Vec<String>
See https://docs.docker.com/reference/dockerfile/#copy—exclude
parents: Option<bool>
See https://docs.docker.com/reference/dockerfile/#copy—parents
Trait Implementations§
Source§impl From<ParsableStruct<CopyPatch>> for Copy
impl From<ParsableStruct<CopyPatch>> for Copy
Source§fn from(value: ParsableStruct<CopyPatch>) -> Self
fn from(value: ParsableStruct<CopyPatch>) -> Self
Converts to this type from the input type.
Source§impl Patch<CopyPatch> for Copy
impl Patch<CopyPatch> for Copy
Source§fn into_patch(self) -> CopyPatch
fn into_patch(self) -> CopyPatch
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) -> CopyPatch
fn into_patch_by_diff(self, previous_struct: Self) -> CopyPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> CopyPatch
fn new_empty_patch() -> CopyPatch
Get an empty patch instance
Source§impl Patch<ParsableStruct<CopyPatch>> for Copy
impl Patch<ParsableStruct<CopyPatch>> for Copy
Source§fn apply(&mut self, patch: ParsableStruct<CopyPatch>)
fn apply(&mut self, patch: ParsableStruct<CopyPatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<CopyPatch>
fn into_patch(self) -> ParsableStruct<CopyPatch>
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<CopyPatch>
fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<CopyPatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<CopyPatch>
fn new_empty_patch() -> ParsableStruct<CopyPatch>
Get an empty patch instance
Source§impl Patch<UnknownPatch> for Copy
impl Patch<UnknownPatch> for Copy
Source§fn apply(&mut self, patch: UnknownPatch)
fn apply(&mut self, patch: UnknownPatch)
Apply a patch
Source§fn into_patch(self) -> UnknownPatch
fn into_patch(self) -> UnknownPatch
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) -> UnknownPatch
fn into_patch_by_diff(self, previous_struct: Self) -> UnknownPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> UnknownPatch
fn new_empty_patch() -> UnknownPatch
Get an empty patch instance
impl StructuralPartialEq for Copy
Auto Trait Implementations§
impl Freeze for Copy
impl RefUnwindSafe for Copy
impl Send for Copy
impl Sync for Copy
impl Unpin for Copy
impl UnwindSafe for Copy
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