Struct diesel::query_builder::DebugQuery
source · [−]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
sourceimpl<'a, T, DB> Debug for DebugQuery<'a, T, DB> where
DB: Backend,
DB::QueryBuilder: Default,
T: QueryFragment<DB>,
impl<'a, T, DB> Debug for DebugQuery<'a, T, DB> where
DB: Backend,
DB::QueryBuilder: Default,
T: QueryFragment<DB>,
sourceimpl<'a, T, DB> Display for DebugQuery<'a, T, DB> where
DB: Backend,
DB::QueryBuilder: Default,
T: QueryFragment<DB>,
impl<'a, T, DB> Display for DebugQuery<'a, T, DB> where
DB: Backend,
DB::QueryBuilder: Default,
T: QueryFragment<DB>,
Auto Trait Implementations
impl<'a, T, DB> RefUnwindSafe for DebugQuery<'a, T, DB> where
DB: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, DB> Send for DebugQuery<'a, T, DB> where
DB: Send,
T: Sync,
impl<'a, T, DB> Sync for DebugQuery<'a, T, DB> where
DB: Sync,
T: Sync,
impl<'a, T, DB> Unpin for DebugQuery<'a, T, DB> where
DB: Unpin,
impl<'a, T, DB> UnwindSafe for DebugQuery<'a, T, DB> where
DB: UnwindSafe,
T: RefUnwindSafe,
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