Struct checksums::options::Options [] [src]

pub struct Options {
    pub dir: PathBuf,
    pub algorithm: Algorithm,
    pub verify: bool,
    pub depth: DepthSetting,
    pub file: (String, PathBuf),
}

Representation of the application's all configurable values.

Fields

dir

Directory to hach/verify. Default: "."

algorithm

Hashing algorithm to use. Default: "SHA1"

verify

Whether to verify or create checksums. Default: yes

depth

Max recursion depth. Default: LastLevel

file

In-/Output filename. Default: "./INFERRED_FROM_DIRECTORY.hash"

Methods

impl Options
[src]

fn parse() -> Options

Parse env-wide command-line arguments into an Options instance

Trait Implementations

Derived Implementations

impl Eq for Options
[src]

impl PartialEq for Options
[src]

fn eq(&self, __arg_0: &Options) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Options) -> bool

This method tests for !=.

impl Hash for Options
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Clone for Options
[src]

fn clone(&self) -> Options

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for Options
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.