pub enum WizardStep {
LoadSaved = 0,
ExportOptions = 1,
DeployTarget = 2,
TargetConfig = 3,
Prerequisites = 4,
Export = 5,
Preview = 6,
Deploy = 7,
Done = 8,
}Expand description
Steps in the wizard state machine.
Variants§
LoadSaved = 0
Offer to load saved config from disk.
ExportOptions = 1
Collect export options (closed, history, title).
DeployTarget = 2
Choose deployment target.
TargetConfig = 3
Collect target-specific settings.
Prerequisites = 4
Verify prerequisites (CLI tools, auth).
Export = 5
Perform the export.
Preview = 6
Offer local preview before deploy.
Deploy = 7
Deploy to target.
Done = 8
Show success summary.
Implementations§
Source§impl WizardStep
impl WizardStep
Sourcepub fn back(self) -> Option<Self>
pub fn back(self) -> Option<Self>
Go back to the previous user-configurable step. Export/Preview/Deploy/Done cannot be backed out of.
Sourcepub fn is_cancellable(self) -> bool
pub fn is_cancellable(self) -> bool
Whether this step can be cancelled (returns to caller).
Sourcepub const fn display_number(self) -> usize
pub const fn display_number(self) -> usize
Step number for display (1-indexed).
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 Ord for WizardStep
impl Ord for WizardStep
Source§fn cmp(&self, other: &WizardStep) -> Ordering
fn cmp(&self, other: &WizardStep) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WizardStep
impl PartialEq for WizardStep
Source§impl PartialOrd for WizardStep
impl PartialOrd for WizardStep
impl Copy for WizardStep
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.