pub struct StatsOptions {
pub input_dir: String,
pub pattern: String,
pub format: StatsFormat,
}Expand description
Options for the stats command.
Fields§
§input_dir: StringInput directory containing ADR files.
pattern: StringGlob pattern for matching ADR files.
format: StatsFormatOutput format.
Implementations§
Source§impl StatsOptions
impl StatsOptions
Sourcepub fn new(input_dir: impl Into<String>) -> Self
pub fn new(input_dir: impl Into<String>) -> Self
Creates new options with the given input directory.
Sourcepub fn with_pattern(self, pattern: impl Into<String>) -> Self
pub fn with_pattern(self, pattern: impl Into<String>) -> Self
Sets the glob pattern for matching files.
Sourcepub const fn with_format(self, format: StatsFormat) -> Self
pub const fn with_format(self, format: StatsFormat) -> Self
Sets the output format.
Trait Implementations§
Source§impl Clone for StatsOptions
impl Clone for StatsOptions
Source§fn clone(&self) -> StatsOptions
fn clone(&self) -> StatsOptions
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 moreSource§impl Debug for StatsOptions
impl Debug for StatsOptions
Auto Trait Implementations§
impl Freeze for StatsOptions
impl RefUnwindSafe for StatsOptions
impl Send for StatsOptions
impl Sync for StatsOptions
impl Unpin for StatsOptions
impl UnwindSafe for StatsOptions
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