pub enum QuestionKind {
Input(InputQuestion),
Multiline(MultilineQuestion),
Masked(MaskedQuestion),
Int(IntQuestion),
Float(FloatQuestion),
Confirm(ConfirmQuestion),
Nested(NestedQuestion),
}Expand description
Possible question kinds which a wizard may ask.
Variants§
Input(InputQuestion)
A text input question for string values.
Multiline(MultilineQuestion)
A multi-line text input.
Masked(MaskedQuestion)
A password/masked input question.
Int(IntQuestion)
A number input question (integers).
Float(FloatQuestion)
A number input question (floating point).
Confirm(ConfirmQuestion)
A yes/no confirmation question.
Nested(NestedQuestion)
A nested interview (for composite types that implement Wizard).
Trait Implementations§
Source§impl Clone for QuestionKind
impl Clone for QuestionKind
Source§fn clone(&self) -> QuestionKind
fn clone(&self) -> QuestionKind
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 QuestionKind
impl Debug for QuestionKind
Auto Trait Implementations§
impl Freeze for QuestionKind
impl RefUnwindSafe for QuestionKind
impl Send for QuestionKind
impl Sync for QuestionKind
impl Unpin for QuestionKind
impl UnwindSafe for QuestionKind
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