pub struct Password { /* private fields */ }
Expand description
A dialog box with a password input field.
This dialog box displays a text and a password input field. It returns the password entered by
the user or None
if the user cancelled the dialog.
Example
use dialog::DialogBox;
let password = dialog::Password::new("Please enter a new password")
.title("Password")
.show()
.expect("Could not display dialog box");
match password {
Some(password) => println!("Your new password is: {}", password),
None => println!("You do not want to have a password."),
};
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Password
impl Send for Password
impl Sync for Password
impl Unpin for Password
impl UnwindSafe for Password
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more