Struct dofigen_lib::Stage
source · pub struct Stage {
pub from: FromContext,
pub user: Option<User>,
pub workdir: Option<String>,
pub env: HashMap<String, String>,
pub copy: Vec<CopyResource>,
pub root: Option<Run>,
pub run: Run,
}Expand description
Represents a Dockerfile stage
Fields§
§from: FromContext§user: Option<User>§workdir: Option<String>§env: HashMap<String, String>§copy: Vec<CopyResource>§root: Option<Run>§run: RunImplementations§
Trait Implementations§
source§impl From<StagePatch> for Stage
impl From<StagePatch> for Stage
source§fn from(value: StagePatch) -> Self
fn from(value: StagePatch) -> Self
Converts to this type from the input type.
source§impl Patch<StagePatch> for Stage
impl Patch<StagePatch> for Stage
source§fn apply(&mut self, patch: StagePatch)
fn apply(&mut self, patch: StagePatch)
Apply a patch
source§fn into_patch(self) -> StagePatch
fn into_patch(self) -> StagePatch
Returns a patch that when applied turns any struct of the same type into
Selfsource§fn into_patch_by_diff(self, previous_struct: Self) -> StagePatch
fn into_patch_by_diff(self, previous_struct: Self) -> StagePatch
Returns a patch that when applied turns
previous_struct into Selfsource§fn new_empty_patch() -> StagePatch
fn new_empty_patch() -> StagePatch
Get an empty patch instance
impl StructuralPartialEq for Stage
Auto Trait Implementations§
impl Freeze for Stage
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnwindSafe for Stage
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)