pub struct ChatInputBooleanQuestion {
pub id: String,
pub title: Option<String>,
pub message: String,
pub required: Option<bool>,
pub default_value: Option<bool>,
}Expand description
Boolean 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
default_value: Option<bool>Default boolean value
Trait Implementations§
Source§impl Clone for ChatInputBooleanQuestion
impl Clone for ChatInputBooleanQuestion
Source§fn clone(&self) -> ChatInputBooleanQuestion
fn clone(&self) -> ChatInputBooleanQuestion
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 ChatInputBooleanQuestion
impl Debug for ChatInputBooleanQuestion
Source§impl<'de> Deserialize<'de> for ChatInputBooleanQuestion
impl<'de> Deserialize<'de> for ChatInputBooleanQuestion
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 ChatInputBooleanQuestion
impl PartialEq for ChatInputBooleanQuestion
Source§fn eq(&self, other: &ChatInputBooleanQuestion) -> bool
fn eq(&self, other: &ChatInputBooleanQuestion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChatInputBooleanQuestion
impl Serialize for ChatInputBooleanQuestion
impl StructuralPartialEq for ChatInputBooleanQuestion
Auto Trait Implementations§
impl Freeze for ChatInputBooleanQuestion
impl RefUnwindSafe for ChatInputBooleanQuestion
impl Send for ChatInputBooleanQuestion
impl Sync for ChatInputBooleanQuestion
impl Unpin for ChatInputBooleanQuestion
impl UnsafeUnpin for ChatInputBooleanQuestion
impl UnwindSafe for ChatInputBooleanQuestion
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