pub enum WizardStep {
EnsureDir {
paths: Vec<String>,
},
WriteFiles {
files: BTreeMap<String, String>,
},
RunCli {
command: String,
args: Vec<String>,
},
Delegate {
target: WizardTarget,
id: WizardId,
mode: WizardMode,
prefilled_answers: BTreeMap<String, Value>,
output_map: BTreeMap<String, String>,
},
}Expand description
A single wizard plan step.
Variants§
EnsureDir
Ensure directories exist.
WriteFiles
Write files as path -> UTF-8 content.
RunCli
Legacy bridge to invoke CLI commands.
Delegate
Delegate part of the wizard to another target/id/mode.
Trait Implementations§
Source§impl Clone for WizardStep
impl Clone for WizardStep
Source§fn clone(&self) -> WizardStep
fn clone(&self) -> WizardStep
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 WizardStep
impl Debug for WizardStep
Source§impl<'de> Deserialize<'de> for WizardStep
impl<'de> Deserialize<'de> for WizardStep
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 WizardStep
impl PartialEq for WizardStep
Source§impl Serialize for WizardStep
impl Serialize for WizardStep
impl StructuralPartialEq for WizardStep
Auto Trait Implementations§
impl Freeze for WizardStep
impl RefUnwindSafe for WizardStep
impl Send for WizardStep
impl Sync for WizardStep
impl Unpin for WizardStep
impl UnsafeUnpin for WizardStep
impl UnwindSafe for WizardStep
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