pub enum QueryText {
Off,
Sanitized,
Raw,
}Expand description
Controls how SQL query text appears in trace spans.
Variants§
Off
Do not record db.query.text. Only db.query.summary is set.
Sanitized
Record db.query.text with literals replaced by ?. Extended protocol
queries (already parameterized) are recorded as-is.
Raw
Record the full SQL verbatim, including literal values.
Trait Implementations§
impl Copy for QueryText
Source§impl<'de> Deserialize<'de> for QueryText
impl<'de> Deserialize<'de> for QueryText
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
impl Eq for QueryText
impl StructuralPartialEq for QueryText
Auto Trait Implementations§
impl Forget for QueryText
impl Freeze for QueryText
impl Move for QueryText
impl RefUnwindSafe for QueryText
impl Send for QueryText
impl Sync for QueryText
impl Unpin for QueryText
impl UnsafeUnpin for QueryText
impl UnwindSafe for QueryText
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.