pub struct ChatInputTextQuestion {
pub id: String,
pub title: Option<String>,
pub message: String,
pub required: Option<bool>,
pub format: Option<String>,
pub min: Option<i64>,
pub max: Option<i64>,
pub default_value: Option<String>,
}Expand description
Text 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
format: Option<String>Format hint for text questions, such as email, uri, date, or date-time
min: Option<i64>Minimum string length
max: Option<i64>Maximum string length
default_value: Option<String>Default text
Trait Implementations§
Source§impl Clone for ChatInputTextQuestion
impl Clone for ChatInputTextQuestion
Source§fn clone(&self) -> ChatInputTextQuestion
fn clone(&self) -> ChatInputTextQuestion
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 ChatInputTextQuestion
impl Debug for ChatInputTextQuestion
Source§impl<'de> Deserialize<'de> for ChatInputTextQuestion
impl<'de> Deserialize<'de> for ChatInputTextQuestion
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 ChatInputTextQuestion
impl PartialEq for ChatInputTextQuestion
Source§fn eq(&self, other: &ChatInputTextQuestion) -> bool
fn eq(&self, other: &ChatInputTextQuestion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChatInputTextQuestion
impl Serialize for ChatInputTextQuestion
impl StructuralPartialEq for ChatInputTextQuestion
Auto Trait Implementations§
impl Freeze for ChatInputTextQuestion
impl RefUnwindSafe for ChatInputTextQuestion
impl Send for ChatInputTextQuestion
impl Sync for ChatInputTextQuestion
impl Unpin for ChatInputTextQuestion
impl UnsafeUnpin for ChatInputTextQuestion
impl UnwindSafe for ChatInputTextQuestion
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