Struct sqlparse::FormatOption
source · [−]pub struct FormatOption<'a> {Show 17 fields
pub keyword_case: &'a str,
pub identifier_case: &'a str,
pub output_format: &'a str,
pub strip_comments: bool,
pub use_space_around_operators: bool,
pub strip_whitespace: bool,
pub reindent: bool,
pub indent_columns: bool,
pub reindent_aligned: bool,
pub indent_after_first: bool,
pub indent_tabs: bool,
pub indent_width: usize,
pub indent_char: &'a str,
pub wrap_after: usize,
pub comma_first: bool,
pub right_margin: bool,
pub grouping: bool,
}Expand description
sql format options
Fields
keyword_case: &'a strupper, lower
identifier_case: &'a strupper, lower
output_format: &'a strstrip_comments: booluse_space_around_operators: boolstrip_whitespace: boolreindent: boolindent_columns: boolreindent_aligned: boolindent_after_first: boolindent_tabs: boolindent_width: usizeindent_char: &'a strwrap_after: usizecomma_first: boolright_margin: boolgrouping: boolImplementations
sourceimpl<'a> FormatOption<'a>
impl<'a> FormatOption<'a>
pub fn default_reindent() -> Self
pub fn default_reindent_aligned() -> Self
Trait Implementations
sourceimpl<'a> Default for FormatOption<'a>
impl<'a> Default for FormatOption<'a>
sourcefn default() -> FormatOption<'a>
fn default() -> FormatOption<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for FormatOption<'a>
impl<'a> Send for FormatOption<'a>
impl<'a> Sync for FormatOption<'a>
impl<'a> Unpin for FormatOption<'a>
impl<'a> UnwindSafe for FormatOption<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more