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