pub struct MasterOptions {
pub master: Option<String>,
pub domain: Option<String>,
pub token: Option<String>,
}Expand description
Options for master-pass mode.
Fields§
§master: Option<String>Set the master passphrase to use for generating passwords.
In master passphrase mode, Passgen uses the master passphrase you supply here to generate deterministic outputs. With this functionality, you can use Passgen as a password manager, only having to remember a single master passphrase and using it to generate unique passphrases per domain and login.
This also enables the master-passphrase randomness source. You cannot combine this with any other randomness source.
domain: Option<String>Set the domain for the master passphrase mode.
Requires that you specify a master passphrase.
token: Option<String>Set the token for the master passphrase.
This allows you to generate multiple, unique passphrases for a single domain, for example if you have multiple accounts.
Implementations§
Trait Implementations§
Source§impl Args for MasterOptions
impl Args for MasterOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for MasterOptions
impl FromArgMatches for MasterOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.