pub struct QueryLogConfig {
pub params: bool,
pub slow_statement_threshold: Option<Duration>,
}Expand description
Configuration for the per-query toasty::query tracing event.
Set on Db::builder() and handed to each driver connection at creation
time through the ConnectContext passed to
Driver::connect.
Fields§
§params: boolInclude bound parameter values in the event. Off by default: parameter values are application data and may contain secrets.
slow_statement_threshold: Option<Duration>Emit the per-query event at WARN instead of DEBUG when
execution takes at least this long. None disables escalation.
Trait Implementations§
Source§impl Clone for QueryLogConfig
impl Clone for QueryLogConfig
Source§fn clone(&self) -> QueryLogConfig
fn clone(&self) -> QueryLogConfig
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 QueryLogConfig
impl Debug for QueryLogConfig
Source§impl Default for QueryLogConfig
impl Default for QueryLogConfig
impl Copy for QueryLogConfig
Auto Trait Implementations§
impl Freeze for QueryLogConfig
impl RefUnwindSafe for QueryLogConfig
impl Send for QueryLogConfig
impl Sync for QueryLogConfig
impl Unpin for QueryLogConfig
impl UnsafeUnpin for QueryLogConfig
impl UnwindSafe for QueryLogConfig
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