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