pub struct WizardStep {
pub title: String,
pub question: String,
pub items: Vec<InlineListItem>,
pub completed: bool,
pub answer: Option<InlineListSelection>,
pub allow_freeform: bool,
pub freeform_label: Option<String>,
pub freeform_placeholder: Option<String>,
pub freeform_default: Option<String>,
}Expand description
A single step in a wizard modal flow.
Fields§
§title: StringTitle displayed in the tab header.
question: StringQuestion or instruction shown above the list.
items: Vec<InlineListItem>Selectable items for this step.
completed: boolWhether this step has been completed.
answer: Option<InlineListSelection>The selected answer for this step (if completed).
allow_freeform: bool§freeform_label: Option<String>§freeform_placeholder: Option<String>§freeform_default: Option<String>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 moreAuto 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<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