pub struct TreeArgs {Show 16 fields
pub root: PathBuf,
pub ext: Vec<String>,
pub exclude: Vec<String>,
pub exclude_ext: Vec<String>,
pub exclude_glob: Vec<String>,
pub include_rc: bool,
pub include_msbuild: bool,
pub include_hidden: bool,
pub target: TargetEncoding,
pub dry_run: bool,
pub backup_dir: Option<PathBuf>,
pub max_file_size: u64,
pub threads: Option<usize>,
pub report: Option<PathBuf>,
pub quiet: bool,
pub verbose: bool,
}Expand description
Options shared by scan / convert / verify (tree mode).
Fields§
§root: PathBufRoot directory to process recursively.
ext: Vec<String>Override the default extension whitelist (comma-separated).
exclude: Vec<String>Extra excluded directory names (comma-separated, appended to defaults).
exclude_ext: Vec<String>Extra excluded extensions (comma-separated, appended).
exclude_glob: Vec<String>Extra glob pattern excluding root-relative paths (repeatable).
include_rc: boolInclude .rc/.rc2/.dlg (rc.exe has limited UTF-8 support).
include_msbuild: boolInclude .sln/.vcxproj/… (VS re-saves these with a BOM).
Process dot-prefixed files and directories.
target: TargetEncodingTarget encoding: utf-8 | utf-8-bom | gb18030 | utf-16le | utf-16be.
dry_run: boolReport what would change without writing anything.
backup_dir: Option<PathBuf>Mirror original bytes under this directory before overwriting.
max_file_size: u64Skip files above this size, recorded as too_large (bytes).
threads: Option<usize>Rayon worker thread count (default: CPU count).
report: Option<PathBuf>Write a JSON report to this path.
quiet: boolPrint errors only.
verbose: boolPrint one line per file.
Trait Implementations§
Source§impl Args for TreeArgs
impl Args for TreeArgs
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 TreeArgs
impl FromArgMatches for TreeArgs
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.Auto Trait Implementations§
impl Freeze for TreeArgs
impl RefUnwindSafe for TreeArgs
impl Send for TreeArgs
impl Sync for TreeArgs
impl Unpin for TreeArgs
impl UnsafeUnpin for TreeArgs
impl UnwindSafe for TreeArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more