pub struct ChatInputSingleSelectQuestion {
pub id: String,
pub title: Option<String>,
pub message: String,
pub required: Option<bool>,
pub options: Vec<ChatInputOption>,
pub allow_freeform_input: Option<bool>,
}Expand description
Single-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 instead of selecting an option
Trait Implementations§
Source§impl Clone for ChatInputSingleSelectQuestion
impl Clone for ChatInputSingleSelectQuestion
Source§fn clone(&self) -> ChatInputSingleSelectQuestion
fn clone(&self) -> ChatInputSingleSelectQuestion
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<'de> Deserialize<'de> for ChatInputSingleSelectQuestion
impl<'de> Deserialize<'de> for ChatInputSingleSelectQuestion
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 ChatInputSingleSelectQuestion
impl PartialEq for ChatInputSingleSelectQuestion
Source§fn eq(&self, other: &ChatInputSingleSelectQuestion) -> bool
fn eq(&self, other: &ChatInputSingleSelectQuestion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChatInputSingleSelectQuestion
Auto Trait Implementations§
impl Freeze for ChatInputSingleSelectQuestion
impl RefUnwindSafe for ChatInputSingleSelectQuestion
impl Send for ChatInputSingleSelectQuestion
impl Sync for ChatInputSingleSelectQuestion
impl Unpin for ChatInputSingleSelectQuestion
impl UnsafeUnpin for ChatInputSingleSelectQuestion
impl UnwindSafe for ChatInputSingleSelectQuestion
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