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 Freeze for Password
impl RefUnwindSafe for Password
impl Send for Password
impl Sync for Password
impl Unpin for Password
impl UnsafeUnpin for Password
impl UnwindSafe for Password
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