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: Indent
Controls the type and length of indentation to use
Default: 2 spaces
uppercase: bool
When set, changes reserved keywords to ALL CAPS
Default: false
lines_between_queries: u8
Controls 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 moresource§impl Debug for FormatOptions
impl Debug for FormatOptions
source§impl Default for FormatOptions
impl Default for FormatOptions
impl Copy for FormatOptions
Auto Trait Implementations§
impl RefUnwindSafe for FormatOptions
impl Send for FormatOptions
impl Sync for FormatOptions
impl Unpin for FormatOptions
impl UnwindSafe for FormatOptions
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