[][src]Enum rust_keylock::UserSelection

pub enum UserSelection {
    NewEntry(Entry),
    ReplaceEntry(usizeEntry),
    DeleteEntry(usize),
    GoTo(Menu),
    ProvidedPassword(Stringusize),
    Ack,
    ExportTo(String),
    ImportFrom(StringStringusize),
    ImportFromDefaultLocation(StringStringusize),
    UserOption(UserOption),
    UpdateConfiguration(NextcloudConfiguration),
    AddToClipboard(String),
}

Represents a User selection that is returned after showing a Menu.

Variants

NewEntry(Entry)

The User selected an Entry.

ReplaceEntry(usizeEntry)

The User updated an Entry.

DeleteEntry(usize)

The User deleted an Entry.

GoTo(Menu)

The User selected to go to a Menu.

ProvidedPassword(Stringusize)

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(StringStringusize)

The User selected to import the password Entries from a path.

ImportFromDefaultLocation(StringStringusize)

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(NextcloudConfiguration)

The User updates the configuration.

AddToClipboard(String)

The user copies content to the clipboard.

Methods

impl UserSelection[src]

pub fn is_same_variant_with(&self, other: &UserSelection) -> bool[src]

Trait Implementations

impl PartialEq<UserSelection> for UserSelection[src]

impl Clone for UserSelection[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for UserSelection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self