pub struct MaskedQuestion {
pub mask: Option<char>,
pub validate_on_key: Option<String>,
pub validate_on_submit: Option<String>,
}Expand description
Configuration for a password/masked input question.
Fields§
§mask: Option<char>The masking character (default: ‘*’).
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 MaskedQuestion
impl Clone for MaskedQuestion
Source§fn clone(&self) -> MaskedQuestion
fn clone(&self) -> MaskedQuestion
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 MaskedQuestion
impl RefUnwindSafe for MaskedQuestion
impl Send for MaskedQuestion
impl Sync for MaskedQuestion
impl Unpin for MaskedQuestion
impl UnwindSafe for MaskedQuestion
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