pub struct DebugQuery<'a, T: 'a, DB> { /* private fields */ }
Expand description
A struct that implements fmt::Display
and fmt::Debug
to show the SQL
representation of a query.
The Display
implementation will be the exact query sent to the server,
plus a comment with the values of the bind parameters. The Debug
implementation is more structured, and able to be pretty printed.
See debug_query
for usage examples.
Trait Implementations§
source§impl<'a, T, DB> Debug for DebugQuery<'a, T, DB>
impl<'a, T, DB> Debug for DebugQuery<'a, T, DB>
source§impl<'a, T, DB> Display for DebugQuery<'a, T, DB>
impl<'a, T, DB> Display for DebugQuery<'a, T, DB>
impl<T, DB> DebugQuery for DebugQuery<'_, T, DB>
Auto Trait Implementations§
impl<'a, T, DB> Freeze for DebugQuery<'a, T, DB>
impl<'a, T, DB> RefUnwindSafe for DebugQuery<'a, T, DB>where
T: RefUnwindSafe,
DB: RefUnwindSafe,
impl<'a, T, DB> Send for DebugQuery<'a, T, DB>
impl<'a, T, DB> Sync for DebugQuery<'a, T, DB>
impl<'a, T, DB> Unpin for DebugQuery<'a, T, DB>where
DB: Unpin,
impl<'a, T, DB> UnwindSafe for DebugQuery<'a, T, DB>where
T: RefUnwindSafe,
DB: UnwindSafe,
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