pub enum KeywordCase {
Upper,
Lower,
}Expand description
Controls how SQL keywords are cased in formatted output.
let mut fmt = Formatter::with_config(
&FormatConfig::default().with_keyword_case(KeywordCase::Lower),
);
let out = fmt.format("SELECT 1").unwrap();
assert!(out.starts_with("select"));Variants§
Trait Implementations§
Source§impl Clone for KeywordCase
impl Clone for KeywordCase
Source§fn clone(&self) -> KeywordCase
fn clone(&self) -> KeywordCase
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 KeywordCase
impl Debug for KeywordCase
Source§impl Default for KeywordCase
impl Default for KeywordCase
Source§fn default() -> KeywordCase
fn default() -> KeywordCase
Returns the “default value” for a type. Read more
Source§impl PartialEq for KeywordCase
impl PartialEq for KeywordCase
impl Copy for KeywordCase
impl Eq for KeywordCase
impl StructuralPartialEq for KeywordCase
Auto Trait Implementations§
impl Freeze for KeywordCase
impl RefUnwindSafe for KeywordCase
impl Send for KeywordCase
impl Sync for KeywordCase
impl Unpin for KeywordCase
impl UnsafeUnpin for KeywordCase
impl UnwindSafe for KeywordCase
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