pub struct CopyContent {
pub content: String,
pub substitute: Option<bool>,
pub options: CopyOptions,
}
Expand description
Represents the COPY instruction in a Dockerfile from file content. See https://docs.docker.com/reference/dockerfile/#example-creating-inline-files
Fields§
§content: String
Content of the file to copy
substitute: Option<bool>
If true, replace variables in the content at build time. Default is true.
options: CopyOptions
The options of the copy
Trait Implementations§
Source§impl Clone for CopyContent
impl Clone for CopyContent
Source§fn clone(&self) -> CopyContent
fn clone(&self) -> CopyContent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CopyContent
impl Debug for CopyContent
Source§impl Default for CopyContent
impl Default for CopyContent
Source§fn default() -> CopyContent
fn default() -> CopyContent
Returns the “default value” for a type. Read more
Source§impl From<CopyContentPatch> for CopyContent
impl From<CopyContentPatch> for CopyContent
Source§fn from(value: CopyContentPatch) -> Self
fn from(value: CopyContentPatch) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CopyContent
impl PartialEq for CopyContent
Source§impl Patch<CopyContentPatch> for CopyContent
impl Patch<CopyContentPatch> for CopyContent
Source§fn apply(&mut self, patch: CopyContentPatch)
fn apply(&mut self, patch: CopyContentPatch)
Apply a patch
Source§fn into_patch(self) -> CopyContentPatch
fn into_patch(self) -> CopyContentPatch
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) -> CopyContentPatch
fn into_patch_by_diff(self, previous_struct: Self) -> CopyContentPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> CopyContentPatch
fn new_empty_patch() -> CopyContentPatch
Get an empty patch instance
Source§impl Patch<UnknownPatch> for CopyContent
impl Patch<UnknownPatch> for CopyContent
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
Source§impl Serialize for CopyContent
impl Serialize for CopyContent
impl StructuralPartialEq for CopyContent
Auto Trait Implementations§
impl Freeze for CopyContent
impl RefUnwindSafe for CopyContent
impl Send for CopyContent
impl Sync for CopyContent
impl Unpin for CopyContent
impl UnwindSafe for CopyContent
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