Enum modus_lib::imagegen::MergeOperation
source · [−]pub enum MergeOperation {
Run {
command: String,
cwd: String,
additional_envs: HashMap<String, String>,
},
CopyFromImage {
src_image: NodeId,
src_path: String,
dst_path: String,
},
CopyFromLocal {
src_path: String,
dst_path: String,
},
}
Variants
Run
CopyFromImage
CopyFromLocal
Trait Implementations
sourceimpl Clone for MergeOperation
impl Clone for MergeOperation
sourcefn clone(&self) -> MergeOperation
fn clone(&self) -> MergeOperation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MergeOperation
impl Debug for MergeOperation
sourceimpl<'de> Deserialize<'de> for MergeOperation
impl<'de> Deserialize<'de> for MergeOperation
sourcefn 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
sourceimpl Serialize for MergeOperation
impl Serialize for MergeOperation
Auto Trait Implementations
impl RefUnwindSafe for MergeOperation
impl Send for MergeOperation
impl Sync for MergeOperation
impl Unpin for MergeOperation
impl UnwindSafe for MergeOperation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
sourcefn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
sourceimpl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
sourcefn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more