pub struct FormattingOptions {
pub tab_size: u32,
pub insert_spaces: bool,
pub trim_trailing_whitespace: bool,
pub insert_final_newline: bool,
pub trim_final_newlines: bool,
}Expand description
Formatting options for DBML documents
Fields§
§tab_size: u32Size of a tab in spaces
insert_spaces: boolPrefer spaces over tabs
trim_trailing_whitespace: boolTrim trailing whitespace on lines
insert_final_newline: boolInsert a final newline at the end of the file
trim_final_newlines: boolTrim all newlines after the final newline at the end of the file
Implementations§
Trait Implementations§
Source§impl Clone for FormattingOptions
impl Clone for FormattingOptions
Source§fn clone(&self) -> FormattingOptions
fn clone(&self) -> FormattingOptions
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 FormattingOptions
impl Debug for FormattingOptions
Auto Trait Implementations§
impl Freeze for FormattingOptions
impl RefUnwindSafe for FormattingOptions
impl Send for FormattingOptions
impl Sync for FormattingOptions
impl Unpin for FormattingOptions
impl UnwindSafe for FormattingOptions
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