pub struct CopyOptions {
pub target: Option<String>,
pub chown: Option<User>,
pub chmod: Option<String>,
pub link: Option<bool>,
}
Expand description
Represents the options of a COPY/ADD instructions
Fields§
§target: Option<String>
The target path of the copied files
chown: Option<User>
The user and group that own the copied files See https://docs.docker.com/reference/dockerfile/#copy—chown—chmod
chmod: Option<String>
The permissions of the copied files See https://docs.docker.com/reference/dockerfile/#copy—chown—chmod
link: Option<bool>
Use of the link flag See https://docs.docker.com/reference/dockerfile/#copy—link
Trait Implementations§
Source§impl Clone for CopyOptions
impl Clone for CopyOptions
Source§fn clone(&self) -> CopyOptions
fn clone(&self) -> CopyOptions
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 CopyOptions
impl Debug for CopyOptions
Source§impl Default for CopyOptions
impl Default for CopyOptions
Source§fn default() -> CopyOptions
fn default() -> CopyOptions
Returns the “default value” for a type. Read more
Source§impl From<CopyOptionsPatch> for CopyOptions
impl From<CopyOptionsPatch> for CopyOptions
Source§fn from(value: CopyOptionsPatch) -> Self
fn from(value: CopyOptionsPatch) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CopyOptions
impl PartialEq for CopyOptions
Source§impl Patch<CopyOptionsPatch> for CopyOptions
impl Patch<CopyOptionsPatch> for CopyOptions
Source§fn apply(&mut self, patch: CopyOptionsPatch)
fn apply(&mut self, patch: CopyOptionsPatch)
Apply a patch
Source§fn into_patch(self) -> CopyOptionsPatch
fn into_patch(self) -> CopyOptionsPatch
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) -> CopyOptionsPatch
fn into_patch_by_diff(self, previous_struct: Self) -> CopyOptionsPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> CopyOptionsPatch
fn new_empty_patch() -> CopyOptionsPatch
Get an empty patch instance
Source§impl Serialize for CopyOptions
impl Serialize for CopyOptions
impl StructuralPartialEq for CopyOptions
Auto Trait Implementations§
impl Freeze for CopyOptions
impl RefUnwindSafe for CopyOptions
impl Send for CopyOptions
impl Sync for CopyOptions
impl Unpin for CopyOptions
impl UnwindSafe for CopyOptions
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