Trait UserWithPassphrase

Source
pub trait UserWithPassphrase: Debug {
    // Required methods
    fn user(&self) -> String;
    fn passphrase(&self) -> &Passphrase;
}
Expand description

An abstraction for a user with a passphrase.

Required Methods§

Source

fn user(&self) -> String

Returns the name of the user as owned string.

Source

fn passphrase(&self) -> &Passphrase

Returns the passphrase of the user.

Implementors§