pub struct Question {
pub header: Option<String>,
pub prompt: String,
pub options: Vec<QuestionOption>,
pub multi_select: bool,
pub allow_free_text: bool,
}Expand description
One multiple-choice question carried by RunEvent::AskQuestion. The
neutral shape every adapter maps its harness’s question tool onto. Wire-out
only (Serialize), like the rest of RunEvent.
Fields§
§header: Option<String>Short label for the question (Claude’s header); optional.
prompt: StringThe question text shown to the user.
options: Vec<QuestionOption>§multi_select: boolWhether more than one option may be selected.
allow_free_text: boolWhether a free-text (“Other”) answer is allowed alongside the options.
Trait Implementations§
impl Eq for Question
impl StructuralPartialEq for Question
Auto Trait Implementations§
impl Freeze for Question
impl RefUnwindSafe for Question
impl Send for Question
impl Sync for Question
impl Unpin for Question
impl UnsafeUnpin for Question
impl UnwindSafe for Question
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