pub enum StatefulQItem {
SingleLine {
id: String,
prompt: String,
input: String,
},
MultiLine {
id: String,
prompt: String,
lines: usize,
input: String,
},
SingleChoice {
id: String,
prompt: String,
options: Vec<String>,
choice: Option<usize>,
columns: usize,
},
MultiChoice {
id: String,
prompt: String,
options: Vec<String>,
choice: Vec<bool>,
columns: usize,
},
Slider {
id: String,
prompt: String,
range: (f32, f32),
step: f32,
choice: f32,
precision: u8,
},
}Variants
SingleLine
MultiLine
SingleChoice
MultiChoice
Slider
Trait Implementations
sourceimpl Clone for StatefulQItem
impl Clone for StatefulQItem
sourcefn clone(&self) -> StatefulQItem
fn clone(&self) -> StatefulQItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for StatefulQItem
impl Send for StatefulQItem
impl Sync for StatefulQItem
impl Unpin for StatefulQItem
impl UnwindSafe for StatefulQItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more