pub struct IntQuestion {
pub default: Option<i64>,
pub min: Option<i64>,
pub max: Option<i64>,
pub validate_on_key: Option<String>,
pub validate_on_submit: Option<String>,
}Expand description
Configuration for an integer input question.
Fields§
§default: Option<i64>Optional default value
min: Option<i64>Optional minimum value
max: Option<i64>Optional maximum value
validate_on_key: Option<String>Validation function to call on each keystroke.
validate_on_submit: Option<String>Validation function to call on submission.
Trait Implementations§
Source§impl Clone for IntQuestion
impl Clone for IntQuestion
Source§fn clone(&self) -> IntQuestion
fn clone(&self) -> IntQuestion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IntQuestion
impl RefUnwindSafe for IntQuestion
impl Send for IntQuestion
impl Sync for IntQuestion
impl Unpin for IntQuestion
impl UnwindSafe for IntQuestion
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