pub struct ChatInputMultiSelectQuestion {
pub id: String,
pub title: Option<String>,
pub message: String,
pub required: Option<bool>,
pub options: Vec<ChatInputOption>,
pub allow_freeform_input: Option<bool>,
pub min: Option<i64>,
pub max: Option<i64>,
}Expand description
Multi-select question within a chat input request.
Fields§
§id: StringStable question identifier used as the key in answers
title: Option<String>Short display title
message: StringPrompt shown to the user
required: Option<bool>Whether the user must answer this question to accept the request
options: Vec<ChatInputOption>Options the user may select from
allow_freeform_input: Option<bool>Whether the user may enter text in addition to selecting options
min: Option<i64>Minimum selected item count
max: Option<i64>Maximum selected item count
Trait Implementations§
Source§impl Clone for ChatInputMultiSelectQuestion
impl Clone for ChatInputMultiSelectQuestion
Source§fn clone(&self) -> ChatInputMultiSelectQuestion
fn clone(&self) -> ChatInputMultiSelectQuestion
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 ChatInputMultiSelectQuestion
impl Debug for ChatInputMultiSelectQuestion
Source§impl<'de> Deserialize<'de> for ChatInputMultiSelectQuestion
impl<'de> Deserialize<'de> for ChatInputMultiSelectQuestion
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
Source§impl PartialEq for ChatInputMultiSelectQuestion
impl PartialEq for ChatInputMultiSelectQuestion
Source§fn eq(&self, other: &ChatInputMultiSelectQuestion) -> bool
fn eq(&self, other: &ChatInputMultiSelectQuestion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChatInputMultiSelectQuestion
Auto Trait Implementations§
impl Freeze for ChatInputMultiSelectQuestion
impl RefUnwindSafe for ChatInputMultiSelectQuestion
impl Send for ChatInputMultiSelectQuestion
impl Sync for ChatInputMultiSelectQuestion
impl Unpin for ChatInputMultiSelectQuestion
impl UnsafeUnpin for ChatInputMultiSelectQuestion
impl UnwindSafe for ChatInputMultiSelectQuestion
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