pub struct UserInputQuestionEvent {
pub header: String,
pub id: String,
pub question: String,
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.
options: Vec<UserInputOptionEvent>2-4 suggested answers.
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§fn clone(&self) -> UserInputQuestionEvent
fn clone(&self) -> UserInputQuestionEvent
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 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§fn eq(&self, other: &UserInputQuestionEvent) -> bool
fn eq(&self, other: &UserInputQuestionEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UserInputQuestionEvent
impl Serialize for UserInputQuestionEvent
impl StructuralPartialEq for UserInputQuestionEvent
Auto Trait Implementations§
impl Freeze 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