pub struct Options {
pub preset: Option<String>,
pub amount: usize,
pub random: Option<Random>,
pub master: MasterOptions,
pub format: Format,
pub threads: Option<usize>,
pub verbose: Option<usize>,
pub wordlist: Vec<WordlistSpec>,
pub pattern: Option<String>,
pub config: Vec<PathBuf>,
}Expand description
Generate random sequences from a regex-like pattern.
Fields§
§preset: Option<String>Use the given named preset instead of specifying a pattern.
amount: usizeAmount of sequences to generate.
random: Option<Random>Source of randomness to use.
Possible sources are:
system: use the secure system random number generator (default)
null: use a dummy randomness source (insecure)
xoshiro:<seed>: use the xoshiro randomness source with the given seed (insecure)
master: MasterOptions§format: FormatOutput format to use when emitting generated sequences.
This defaults to a text-based format, but you can also specify ‘json’ or ‘csv’.
threads: Option<usize>Amount of threads to use, enables multi-threaded generation.
verbose: Option<usize>Enable debug log output.
wordlist: Vec<WordlistSpec>Load wordlist for generating wordlist or markov-chain based words.
The format of this is <name>:<path>. For example, to load a wordlist with the name
english that is located at /usr/share/dict/words, specify -w english:/usr/share/dict/words.
pattern: Option<String>§config: Vec<PathBuf>Load configuration file.
Implementations§
Trait Implementations§
Source§impl Args for Options
impl Args for Options
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 CommandFactory for Options
impl CommandFactory for Options
Source§impl FromArgMatches for Options
impl FromArgMatches for Options
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.