Enum inquire::PasswordDisplayMode
source · pub enum PasswordDisplayMode {
Hidden,
Masked,
Full,
}
Expand description
Display modes of the text input of a password prompt.
Variants§
Hidden
Password text input is not rendered at all, no indication of input.
Masked
Characters of the password text input are rendered marked as different characters, such as asterisks. These characters are configured in the render config.
Full
Password text input is fully rendered as a normal input, just like Text prompts.
Trait Implementations§
source§impl Clone for PasswordDisplayMode
impl Clone for PasswordDisplayMode
source§fn clone(&self) -> PasswordDisplayMode
fn clone(&self) -> PasswordDisplayMode
Returns a copy 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 moresource§impl Debug for PasswordDisplayMode
impl Debug for PasswordDisplayMode
source§impl PartialEq<PasswordDisplayMode> for PasswordDisplayMode
impl PartialEq<PasswordDisplayMode> for PasswordDisplayMode
source§fn eq(&self, other: &PasswordDisplayMode) -> bool
fn eq(&self, other: &PasswordDisplayMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PasswordDisplayMode
impl Eq for PasswordDisplayMode
impl StructuralEq for PasswordDisplayMode
impl StructuralPartialEq for PasswordDisplayMode
Auto Trait Implementations§
impl RefUnwindSafe for PasswordDisplayMode
impl Send for PasswordDisplayMode
impl Sync for PasswordDisplayMode
impl Unpin for PasswordDisplayMode
impl UnwindSafe for PasswordDisplayMode
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