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