pub struct StagePatch {
pub from: Option<FromContextPatch>,
pub label: Option<NestedMap<String>>,
pub user: Option<Option<ParsableStruct<UserPatch>>>,
pub workdir: Option<Option<String>>,
pub arg: Option<HashMapPatch<String, String>>,
pub env: Option<HashMapPatch<String, String>>,
pub copy: Option<VecDeepPatch<CopyResource, ParsableStruct<CopyResourcePatch>>>,
pub root: Option<Option<RunPatch>>,
pub run: Option<RunPatch>,
}
Fields§
§from: Option<FromContextPatch>
§label: Option<NestedMap<String>>
§user: Option<Option<ParsableStruct<UserPatch>>>
§workdir: Option<Option<String>>
§arg: Option<HashMapPatch<String, String>>
§env: Option<HashMapPatch<String, String>>
§copy: Option<VecDeepPatch<CopyResource, ParsableStruct<CopyResourcePatch>>>
§root: Option<Option<RunPatch>>
§run: Option<RunPatch>
Trait Implementations§
Source§impl Clone for StagePatch
impl Clone for StagePatch
Source§fn clone(&self) -> StagePatch
fn clone(&self) -> StagePatch
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StagePatch
impl Debug for StagePatch
Source§impl Default for StagePatch
impl Default for StagePatch
Source§fn default() -> StagePatch
fn default() -> StagePatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StagePatchwhere
StagePatch: Default,
impl<'de> Deserialize<'de> for StagePatchwhere
StagePatch: Default,
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 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 PartialEq for StagePatch
impl PartialEq for StagePatch
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
Self
Source§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 Self
Source§fn new_empty_patch() -> StagePatch
fn new_empty_patch() -> StagePatch
Get an empty patch instance
impl StructuralPartialEq for StagePatch
Auto Trait Implementations§
impl Freeze for StagePatch
impl RefUnwindSafe for StagePatch
impl Send for StagePatch
impl Sync for StagePatch
impl Unpin for StagePatch
impl UnwindSafe for StagePatch
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