pub struct InputQuestion {
pub default: Option<String>,
pub validate_on_key: Option<String>,
pub validate_on_submit: Option<String>,
}Expand description
Configuration for a text input question.
Fields§
§default: Option<String>Optional default 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 InputQuestion
impl Clone for InputQuestion
Source§fn clone(&self) -> InputQuestion
fn clone(&self) -> InputQuestion
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 InputQuestion
impl RefUnwindSafe for InputQuestion
impl Send for InputQuestion
impl Sync for InputQuestion
impl Unpin for InputQuestion
impl UnwindSafe for InputQuestion
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