pub struct CopyInstruction {
pub sources: Vec<String>,
pub destination: String,
pub from: Option<String>,
pub chown: Option<String>,
pub chmod: Option<String>,
pub link: bool,
pub exclude: Vec<String>,
}Expand description
COPY instruction
Fields§
§sources: Vec<String>Source paths (relative to context or stage)
destination: StringDestination path in the image
from: Option<String>Source stage for multi-stage builds (–from)
chown: Option<String>Change ownership (–chown)
chmod: Option<String>Change permissions (–chmod)
link: boolCreate hardlink instead of copying (–link)
exclude: Vec<String>Exclude patterns (–exclude)
Implementations§
Trait Implementations§
Source§impl Clone for CopyInstruction
impl Clone for CopyInstruction
Source§fn clone(&self) -> CopyInstruction
fn clone(&self) -> CopyInstruction
Returns a duplicate 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 CopyInstruction
impl Debug for CopyInstruction
Source§impl<'de> Deserialize<'de> for CopyInstruction
impl<'de> Deserialize<'de> for CopyInstruction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CopyInstruction
impl PartialEq for CopyInstruction
Source§impl Serialize for CopyInstruction
impl Serialize for CopyInstruction
impl Eq for CopyInstruction
impl StructuralPartialEq for CopyInstruction
Auto Trait Implementations§
impl Freeze for CopyInstruction
impl RefUnwindSafe for CopyInstruction
impl Send for CopyInstruction
impl Sync for CopyInstruction
impl Unpin for CopyInstruction
impl UnsafeUnpin for CopyInstruction
impl UnwindSafe for CopyInstruction
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more