pub struct BatchFormatParams {
pub patterns: Vec<String>,
pub output_dir: Option<String>,
pub check: bool,
pub ditto: bool,
pub with_counts: bool,
pub recursive: bool,
pub max_depth: usize,
pub parallel: bool,
pub verbose: bool,
pub max_files_override: Option<Option<usize>>,
}Expand description
Parameters for batch format operations.
Groups all configuration for formatting multiple HEDL files, avoiding excessive function arguments.
Fields§
§patterns: Vec<String>File patterns (glob patterns or explicit paths)
output_dir: Option<String>Optional output directory for formatted files
check: boolIf true, checks if files are already canonical without modifying them
ditto: boolIf true, enables ditto optimization in output
with_counts: boolIf true, includes line/value counts in output
recursive: boolEnable recursive directory traversal
max_depth: usizeMaximum recursion depth for directory traversal
parallel: boolIf true, processes files in parallel
verbose: boolIf true, shows detailed progress information
max_files_override: Option<Option<usize>>Optional override for the maximum number of files to process
Trait Implementations§
Source§impl Clone for BatchFormatParams
impl Clone for BatchFormatParams
Source§fn clone(&self) -> BatchFormatParams
fn clone(&self) -> BatchFormatParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BatchFormatParams
impl RefUnwindSafe for BatchFormatParams
impl Send for BatchFormatParams
impl Sync for BatchFormatParams
impl Unpin for BatchFormatParams
impl UnwindSafe for BatchFormatParams
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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