Struct ptagslib::bin::Opt

source ·
pub struct Opt {
Show 20 fields pub thread: usize, pub output: PathBuf, pub dir: PathBuf, pub stat: bool, pub list: Option<String>, pub bin_ctags: PathBuf, pub bin_git: PathBuf, pub opt_ctags: Vec<String>, pub opt_git: Vec<String>, pub opt_git_lfs: Vec<String>, pub verbose: bool, pub exclude_lfs: bool, pub include_untracked: bool, pub include_ignored: bool, pub include_submodule: bool, pub validate_utf8: bool, pub unsorted: bool, pub exclude: Vec<String>, pub completion: Option<String>, pub config: bool,
}

Fields§

§thread: usize

Number of threads

§output: PathBuf

Output filename ( filename ‘-’ means output to stdout )

§dir: PathBuf

Search directory

§stat: bool

Show statistics

§list: Option<String>

Filename of input file list

§bin_ctags: PathBuf

Path to ctags binary

§bin_git: PathBuf

Path to git binary

§opt_ctags: Vec<String>

Options passed to ctags

§opt_git: Vec<String>

Options passed to git

§opt_git_lfs: Vec<String>

Options passed to git-lfs

§verbose: bool

Verbose mode

§exclude_lfs: bool

Exclude git-lfs tracked files

§include_untracked: bool

Include untracked files

§include_ignored: bool

Include ignored files

§include_submodule: bool

Include submodule files

§validate_utf8: bool

Validate UTF8 sequence of tag file

§unsorted: bool

Disable tags sort

§exclude: Vec<String>

Glob pattern of exclude file ( ex. –exclude ‘*.rs’ )

§completion: Option<String>

Generate shell completion file

§config: bool

Generate configuration sample file

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more
Returns clap::App corresponding to the struct.
Builds the struct from clap::ArgMatches. It’s guaranteed to succeed if matches originates from an App generated by StructOpt::clap called on the same type, otherwise it must panic.
Builds the struct from the command line arguments (std::env::args_os). Calls clap::Error::exit on failure, printing the error message and aborting the program.
Builds the struct from the command line arguments (std::env::args_os). Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program, so calling .exit is up to you.
Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more
Gets the struct from any iterator such as a Vec of your making. Read more
Merge the struct from TOML and the struct from args
Creates the struct from clap::ArgMatches with initial values from TOML.
Creates the struct from command line arguments with initial values from TOML.
Creates the struct from iterator with initial values from TOML.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.