pub struct FormattingConfig {
pub check_rustfmt: bool,
pub check_clippy: bool,
pub clippy_lints: Vec<String>,
pub exclude_paths: Vec<PathBuf>,
pub max_line_length: usize,
pub require_docs: bool,
pub ml_specific_rules: MLFormattingRules,
}Expand description
Configuration for code formatting checks
Fields§
§check_rustfmt: boolEnable rustfmt checking
check_clippy: boolEnable clippy checking
clippy_lints: Vec<String>Custom clippy lints to enable
exclude_paths: Vec<PathBuf>Paths to exclude from formatting checks
max_line_length: usizeMaximum allowed line length
require_docs: boolRequire documentation for public items
ml_specific_rules: MLFormattingRulesML-specific formatting rules
Trait Implementations§
Source§impl Clone for FormattingConfig
impl Clone for FormattingConfig
Source§fn clone(&self) -> FormattingConfig
fn clone(&self) -> FormattingConfig
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 FormattingConfig
impl Debug for FormattingConfig
Auto Trait Implementations§
impl Freeze for FormattingConfig
impl RefUnwindSafe for FormattingConfig
impl Send for FormattingConfig
impl Sync for FormattingConfig
impl Unpin for FormattingConfig
impl UnwindSafe for FormattingConfig
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