pub struct QuestionCard {
pub question: QuestionPrompt,
pub header: String,
pub options: Vec<QuestionOption>,
pub multi_select: bool,
}Expand description
One question card in a type: "question" command (REQ-0062).
Fields§
§question: QuestionPromptPrompt text; also the key in the stdout answers map.
header: StringShort card header (max 12 characters).
options: Vec<QuestionOption>Selectable options (2–4 entries).
multi_select: boolWhen true, checkboxes and comma-joined labels; otherwise radio.
Trait Implementations§
Source§impl Clone for QuestionCard
impl Clone for QuestionCard
Source§fn clone(&self) -> QuestionCard
fn clone(&self) -> QuestionCard
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QuestionCard
impl Debug for QuestionCard
impl Eq for QuestionCard
Source§impl PartialEq for QuestionCard
impl PartialEq for QuestionCard
impl StructuralPartialEq for QuestionCard
Auto Trait Implementations§
impl Freeze for QuestionCard
impl RefUnwindSafe for QuestionCard
impl Send for QuestionCard
impl Sync for QuestionCard
impl Unpin for QuestionCard
impl UnsafeUnpin for QuestionCard
impl UnwindSafe for QuestionCard
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