pub struct ValidateOptions {
pub input_dir: String,
pub pattern: String,
pub strict: bool,
}Expand description
Options for the validate command.
Fields§
§input_dir: StringInput directory containing ADR files.
pattern: StringGlob pattern for matching ADR files.
strict: boolWhether to fail on warnings.
Implementations§
Source§impl ValidateOptions
impl ValidateOptions
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_strict(self, strict: bool) -> Self
pub const fn with_strict(self, strict: bool) -> Self
Sets strict mode (fail on warnings).
Trait Implementations§
Source§impl Clone for ValidateOptions
impl Clone for ValidateOptions
Source§fn clone(&self) -> ValidateOptions
fn clone(&self) -> ValidateOptions
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 ValidateOptions
impl Debug for ValidateOptions
Auto Trait Implementations§
impl Freeze for ValidateOptions
impl RefUnwindSafe for ValidateOptions
impl Send for ValidateOptions
impl Sync for ValidateOptions
impl Unpin for ValidateOptions
impl UnwindSafe for ValidateOptions
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