pub struct WizardState {
pub current_step: WizardStep,
pub selected_skill: Option<String>,
pub selected_tool: Option<String>,
pub selected_instance: Option<String>,
pub parameters: HashMap<String, Value>,
pub validation_errors: HashMap<String, String>,
pub steps_completed: HashMap<WizardStep, bool>,
}Expand description
Wizard state structure
Fields§
§current_step: WizardStep§selected_skill: Option<String>§selected_tool: Option<String>§selected_instance: Option<String>§parameters: HashMap<String, Value>§validation_errors: HashMap<String, String>§steps_completed: HashMap<WizardStep, bool>Implementations§
Source§impl WizardState
impl WizardState
Sourcepub fn can_progress(&self) -> bool
pub fn can_progress(&self) -> bool
Validate if current step is complete and can progress
Sourcepub fn is_step_accessible(&self, step: WizardStep) -> bool
pub fn is_step_accessible(&self, step: WizardStep) -> bool
Check if a step is accessible (can navigate to it)
Sourcepub fn complete_current_step(&mut self)
pub fn complete_current_step(&mut self)
Mark current step as completed
Trait Implementations§
Source§impl Clone for WizardState
impl Clone for WizardState
Source§fn clone(&self) -> WizardState
fn clone(&self) -> WizardState
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 WizardState
impl Debug for WizardState
Source§impl Default for WizardState
impl Default for WizardState
Source§impl<'de> Deserialize<'de> for WizardState
impl<'de> Deserialize<'de> for WizardState
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 WizardState
impl PartialEq for WizardState
Source§impl Serialize for WizardState
impl Serialize for WizardState
impl StructuralPartialEq for WizardState
Auto Trait Implementations§
impl Freeze for WizardState
impl RefUnwindSafe for WizardState
impl Send for WizardState
impl Sync for WizardState
impl Unpin for WizardState
impl UnwindSafe for WizardState
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<T> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere
T: DeserializeOwned,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.