pub enum UserSelection {
Show 15 variants
NewEntry(Entry),
ReplaceEntry(usize, Entry),
DeleteEntry(usize),
GoTo(Menu),
ProvidedPassword(Zeroizing<String>, Zeroizing<usize>),
Ack,
ExportTo(String),
ImportFrom(String, Zeroizing<String>, Zeroizing<usize>),
ImportFromDefaultLocation(String, Zeroizing<String>, Zeroizing<usize>),
UserOption(UserOption),
UpdateConfiguration(AllConfigurations),
AddToClipboard(String),
GeneratePassphrase(Option<usize>, Entry),
CheckPasswords,
GenerateBrowserExtensionToken,
}Expand description
Represents a User selection that is returned after showing a Menu.
Variants§
NewEntry(Entry)
The User selected an Entry.
ReplaceEntry(usize, Entry)
The User updated an Entry.
DeleteEntry(usize)
The User deleted an Entry.
GoTo(Menu)
The User selected to go to a Menu.
ProvidedPassword(Zeroizing<String>, Zeroizing<usize>)
The User provided a password and a number.
Ack
The User acknowledges something.
ExportTo(String)
The User selected to export the password Entries to a path.
ImportFrom(String, Zeroizing<String>, Zeroizing<usize>)
The User selected to import the password Entries from a path.
ImportFromDefaultLocation(String, Zeroizing<String>, Zeroizing<usize>)
The User selected to import the password Entries from a file in the default location.
UserOption(UserOption)
The User may be offered to select one of the Options.
UpdateConfiguration(AllConfigurations)
The User updates the configuration.
AddToClipboard(String)
The user copies content to the clipboard.
GeneratePassphrase(Option<usize>, Entry)
The user wants to generate a passphrase for en Entry.
Option
CheckPasswords
The user wants to check the passwords status quality.
GenerateBrowserExtensionToken
The user wants to generate a new Browser Extension token
Implementations§
Source§impl UserSelection
impl UserSelection
pub fn is_same_variant_with(&self, other: &UserSelection) -> bool
pub fn new_provided_password<T: Into<Zeroizing<String>>, U: Into<Zeroizing<usize>>>( password: T, number: U, ) -> UserSelection
pub fn new_import_from<T: Into<Zeroizing<String>>, U: Into<Zeroizing<usize>>>( location: String, password: T, number: U, ) -> UserSelection
pub fn new_import_from_default_location<T: Into<Zeroizing<String>>, U: Into<Zeroizing<usize>>>( location: String, password: T, number: U, ) -> UserSelection
Trait Implementations§
Source§impl Clone for UserSelection
impl Clone for UserSelection
Source§fn clone(&self) -> UserSelection
fn clone(&self) -> UserSelection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more