Struct sqlformat::FormatOptions
source · pub struct FormatOptions {
pub indent: Indent,
pub uppercase: bool,
pub lines_between_queries: u8,
}Expand description
Options for controlling how the library formats SQL
Fields§
§indent: IndentControls the type and length of indentation to use
Default: 2 spaces
uppercase: boolWhen set, changes reserved keywords to ALL CAPS
Default: false
lines_between_queries: u8Controls the number of line breaks after a query
Default: 1
Trait Implementations§
source§impl Clone for FormatOptions
impl Clone for FormatOptions
source§fn clone(&self) -> FormatOptions
fn clone(&self) -> FormatOptions
Returns a copy 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 more