pub struct SessionInputMultiSelectQuestion {
pub id: String,
pub title: Option<String>,
pub message: String,
pub required: Option<bool>,
pub options: Vec<SessionInputOption>,
pub allow_freeform_input: Option<bool>,
pub min: Option<i64>,
pub max: Option<i64>,
}Expand description
Multi-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 in addition to selecting options
min: Option<i64>Minimum selected item count
max: Option<i64>Maximum selected item count
Trait Implementations§
Source§impl Clone for SessionInputMultiSelectQuestion
impl Clone for SessionInputMultiSelectQuestion
Source§fn clone(&self) -> SessionInputMultiSelectQuestion
fn clone(&self) -> SessionInputMultiSelectQuestion
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 SessionInputMultiSelectQuestion
impl<'de> Deserialize<'de> for SessionInputMultiSelectQuestion
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 SessionInputMultiSelectQuestion
impl PartialEq for SessionInputMultiSelectQuestion
Source§fn eq(&self, other: &SessionInputMultiSelectQuestion) -> bool
fn eq(&self, other: &SessionInputMultiSelectQuestion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionInputMultiSelectQuestion
Auto Trait Implementations§
impl Freeze for SessionInputMultiSelectQuestion
impl RefUnwindSafe for SessionInputMultiSelectQuestion
impl Send for SessionInputMultiSelectQuestion
impl Sync for SessionInputMultiSelectQuestion
impl Unpin for SessionInputMultiSelectQuestion
impl UnsafeUnpin for SessionInputMultiSelectQuestion
impl UnwindSafe for SessionInputMultiSelectQuestion
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