pub struct WizardStepState {
pub title: String,
pub question: String,
pub list: ModalListState,
pub completed: bool,
pub answer: Option<InlineListSelection>,
pub notes: String,
pub notes_active: bool,
pub allow_freeform: bool,
pub freeform_label: Option<String>,
pub freeform_placeholder: Option<String>,
}Expand description
State for a single wizard step
Fields§
§title: StringTitle displayed in the tab header
question: StringQuestion or instruction shown above the list
list: ModalListStateList state for selectable items
completed: boolWhether this step has been completed
answer: Option<InlineListSelection>The selected answer for this step
notes: StringOptional notes for the current step (free text)
notes_active: boolWhether notes input is active for the current step
allow_freeform: bool§freeform_label: Option<String>§freeform_placeholder: Option<String>Trait Implementations§
Source§impl Clone for WizardStepState
impl Clone for WizardStepState
Source§fn clone(&self) -> WizardStepState
fn clone(&self) -> WizardStepState
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 moreAuto Trait Implementations§
impl Freeze for WizardStepState
impl RefUnwindSafe for WizardStepState
impl Send for WizardStepState
impl Sync for WizardStepState
impl Unpin for WizardStepState
impl UnsafeUnpin for WizardStepState
impl UnwindSafe for WizardStepState
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more