pub struct Question {
pub question: String,
pub header: String,
pub multi_select: bool,
pub options: Vec<QuestionOption>,
}Expand description
One question in an AskUserTool call.
Fields§
§question: StringThe question text.
header: StringShort header naming what is being decided (CC renders this as the tab/column label). Defaults to the empty string.
multi_select: boolWhether the user may pick more than one option.
options: Vec<QuestionOption>The offered options. May be empty for a purely free-text question.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Question
impl<'de> Deserialize<'de> for Question
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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