pub struct AskUserQuestion {
pub question: String,
pub header: Option<String>,
pub options: Vec<AskUserOption>,
pub multi_select: bool,
}Expand description
A single question within an ask_user interaction.
Fields§
§question: StringThe question text to display to the user.
header: Option<String>An optional short header (max 12 chars) for grouping or labeling.
options: Vec<AskUserOption>The available options for the user to choose from.
multi_select: boolWhether the user can select multiple options.
Trait Implementations§
Source§impl Clone for AskUserQuestion
impl Clone for AskUserQuestion
Source§fn clone(&self) -> AskUserQuestion
fn clone(&self) -> AskUserQuestion
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 AskUserQuestion
impl RefUnwindSafe for AskUserQuestion
impl Send for AskUserQuestion
impl Sync for AskUserQuestion
impl Unpin for AskUserQuestion
impl UnsafeUnpin for AskUserQuestion
impl UnwindSafe for AskUserQuestion
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