pub struct Config {Show 22 fields
pub flavor: Flavor,
pub extensions: Extensions,
pub line_ending: Option<LineEnding>,
pub line_width: usize,
pub math_indent: usize,
pub math_delimiter_style: MathDelimiterStyle,
pub tab_stops: TabStopMode,
pub tab_width: usize,
pub wrap: Option<WrapMode>,
pub blank_lines: BlankLines,
pub formatters: HashMap<String, Vec<FormatterConfig>>,
pub linters: HashMap<String, String>,
pub external_max_parallel: usize,
pub parser: ParserConfig,
pub lint: LintConfig,
pub cache_dir: Option<String>,
pub built_in_greedy_wrap: bool,
pub exclude: Option<Vec<String>>,
pub extend_exclude: Vec<String>,
pub include: Option<Vec<String>>,
pub extend_include: Vec<String>,
pub flavor_overrides: HashMap<String, Flavor>,
}Fields§
§flavor: Flavor§extensions: Extensions§line_ending: Option<LineEnding>§line_width: usize§math_indent: usize§math_delimiter_style: MathDelimiterStyle§tab_stops: TabStopMode§tab_width: usize§wrap: Option<WrapMode>§blank_lines: BlankLines§formatters: HashMap<String, Vec<FormatterConfig>>Language → Formatter(s) mapping (supports multiple formatters per language)
linters: HashMap<String, String>§external_max_parallel: usizeMax parallel external tool invocations (formatters/linters) per document.
parser: ParserConfigParser configuration (experimental)
lint: LintConfigLinter rule toggles.
cache_dir: Option<String>Optional CLI cache directory override.
built_in_greedy_wrap: bool§exclude: Option<Vec<String>>§extend_exclude: Vec<String>§include: Option<Vec<String>>§extend_include: Vec<String>§flavor_overrides: HashMap<String, Flavor>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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