pub struct FlowmarkConfig {Show 13 fields
pub width: Option<usize>,
pub semantic: Option<bool>,
pub cleanups: Option<bool>,
pub smartquotes: Option<bool>,
pub ellipses: Option<bool>,
pub list_spacing: Option<String>,
pub include: Option<Vec<String>>,
pub extend_include: Option<Vec<String>>,
pub exclude: Option<Vec<String>>,
pub extend_exclude: Option<Vec<String>>,
pub files_max_size: Option<u64>,
pub respect_gitignore: Option<bool>,
pub force_exclude: Option<bool>,
}Expand description
Parsed config from a TOML file. Fields are None when not set in the config,
allowing the merge logic to distinguish “not configured” from “explicitly set
to default value”.
Fields§
§width: Option<usize>Line width.
semantic: Option<bool>Whether to use semantic line breaks.
cleanups: Option<bool>Whether to apply safe cleanups.
smartquotes: Option<bool>Whether to convert straight quotes to curly.
ellipses: Option<bool>Whether to convert ... to ellipsis.
list_spacing: Option<String>List spacing mode.
include: Option<Vec<String>>Include patterns.
extend_include: Option<Vec<String>>Additional include patterns.
exclude: Option<Vec<String>>Exclude patterns (replaces defaults).
extend_exclude: Option<Vec<String>>Additional exclude patterns.
files_max_size: Option<u64>Maximum file size in bytes.
respect_gitignore: Option<bool>Whether to respect .gitignore.
force_exclude: Option<bool>Whether to apply exclusions to explicit files.
Trait Implementations§
Source§impl Clone for FlowmarkConfig
impl Clone for FlowmarkConfig
Source§fn clone(&self) -> FlowmarkConfig
fn clone(&self) -> FlowmarkConfig
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 FlowmarkConfig
impl Debug for FlowmarkConfig
Source§impl Default for FlowmarkConfig
impl Default for FlowmarkConfig
Source§fn default() -> FlowmarkConfig
fn default() -> FlowmarkConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for FlowmarkConfig
impl PartialEq for FlowmarkConfig
impl StructuralPartialEq for FlowmarkConfig
Auto Trait Implementations§
impl Freeze for FlowmarkConfig
impl RefUnwindSafe for FlowmarkConfig
impl Send for FlowmarkConfig
impl Sync for FlowmarkConfig
impl Unpin for FlowmarkConfig
impl UnsafeUnpin for FlowmarkConfig
impl UnwindSafe for FlowmarkConfig
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