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