pub struct UserInputQuestionEvent {
pub header: String,
pub id: String,
pub question: String,
pub detail: Option<String>,
pub intent: Option<UserInputIntentEvent>,
pub options: Vec<UserInputOptionEvent>,
pub allow_free_text: bool,
pub multi_select: bool,
}Expand description
A single clarification question posed to the user.
Fields§
§header: StringCompact header shown as the question title.
id: StringStable identifier used to correlate answers back to this question.
question: StringThe question body.
detail: Option<String>§intent: Option<UserInputIntentEvent>§options: Vec<UserInputOptionEvent>§allow_free_text: boolWhen true, the client should also offer a free-text response.
multi_select: boolWhen true, the user may select more than one option.
Trait Implementations§
Source§impl Clone for UserInputQuestionEvent
impl Clone for UserInputQuestionEvent
Source§impl Debug for UserInputQuestionEvent
impl Debug for UserInputQuestionEvent
Source§impl<'de> Deserialize<'de> for UserInputQuestionEvent
impl<'de> Deserialize<'de> for UserInputQuestionEvent
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
impl Eq for UserInputQuestionEvent
Source§impl PartialEq for UserInputQuestionEvent
impl PartialEq for UserInputQuestionEvent
Source§impl Serialize for UserInputQuestionEvent
impl Serialize for UserInputQuestionEvent
impl StructuralPartialEq for UserInputQuestionEvent
Auto Trait Implementations§
impl Forget for UserInputQuestionEvent
impl Freeze for UserInputQuestionEvent
impl Move for UserInputQuestionEvent
impl RefUnwindSafe for UserInputQuestionEvent
impl Send for UserInputQuestionEvent
impl Sync for UserInputQuestionEvent
impl Unpin for UserInputQuestionEvent
impl UnsafeUnpin for UserInputQuestionEvent
impl UnwindSafe for UserInputQuestionEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.