pub struct QueryObservation {
pub table: String,
pub operation: String,
pub query_fingerprint: String,
pub duration_ms: u64,
pub slow_query: bool,
pub potential_n_plus_one: bool,
pub repeated_fingerprint_count: usize,
pub preloads: Vec<String>,
pub trace_id: Option<String>,
pub correlation_id: Option<String>,
pub request_id: Option<String>,
pub hints: Vec<String>,
}Fields§
§table: String§operation: String§query_fingerprint: String§duration_ms: u64§slow_query: bool§potential_n_plus_one: bool§repeated_fingerprint_count: usize§preloads: Vec<String>§trace_id: Option<String>§correlation_id: Option<String>§request_id: Option<String>§hints: Vec<String>Trait Implementations§
Source§impl Clone for QueryObservation
impl Clone for QueryObservation
Source§fn clone(&self) -> QueryObservation
fn clone(&self) -> QueryObservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QueryObservation
impl Debug for QueryObservation
Source§impl<'de> Deserialize<'de> for QueryObservation
impl<'de> Deserialize<'de> for QueryObservation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for QueryObservation
impl PartialEq for QueryObservation
Source§fn eq(&self, other: &QueryObservation) -> bool
fn eq(&self, other: &QueryObservation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for QueryObservation
impl Serialize for QueryObservation
impl Eq for QueryObservation
impl StructuralPartialEq for QueryObservation
Auto Trait Implementations§
impl Freeze for QueryObservation
impl RefUnwindSafe for QueryObservation
impl Send for QueryObservation
impl Sync for QueryObservation
impl Unpin for QueryObservation
impl UnsafeUnpin for QueryObservation
impl UnwindSafe for QueryObservation
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