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