pub struct Config {
pub disable_all_formatting: bool,
pub newline_style: NewlineStyle,
pub format_generated_files: bool,
pub generated_marker_line_search_limit: usize,
pub blank_lines_lower_bound: usize,
pub blank_lines_upper_bound: usize,
pub trailing_comma: SeparatorTactic,
pub hard_tabs: bool,
pub tab_spaces: usize,
pub max_width: usize,
pub array_width: Option<usize>,
pub use_small_heuristics: UseSmallHeuristics,
}Fields§
§disable_all_formatting: bool§newline_style: NewlineStyle§format_generated_files: bool§generated_marker_line_search_limit: usize§blank_lines_lower_bound: usize§blank_lines_upper_bound: usize§trailing_comma: SeparatorTactic§hard_tabs: bool§tab_spaces: usize§max_width: usize§array_width: Option<usize>§use_small_heuristics: UseSmallHeuristicsImplementations§
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 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