pub enum QueryLogMode {
Redact,
Drop,
Full,
}Expand description
What to do with the query string in the access log.
Variants§
Redact
Redact values that are sensitive by name or by shape; keep the rest. The default: an access log stays useful for debugging without carrying credentials.
Drop
Log the path only. The query is replaced by ?<dropped> when one was present, so the log
still shows that parameters existed.
Full
Log the target verbatim. Opt-in, for a deployment that has decided its logs are as sensitive as its traffic and is protecting them accordingly.
Trait Implementations§
Source§impl Clone for QueryLogMode
impl Clone for QueryLogMode
Source§fn clone(&self) -> QueryLogMode
fn clone(&self) -> QueryLogMode
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 moreimpl Copy for QueryLogMode
Source§impl Debug for QueryLogMode
impl Debug for QueryLogMode
Source§impl Default for QueryLogMode
impl Default for QueryLogMode
Source§fn default() -> QueryLogMode
fn default() -> QueryLogMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueryLogMode
impl<'de> Deserialize<'de> for QueryLogMode
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 QueryLogMode
Source§impl PartialEq for QueryLogMode
impl PartialEq for QueryLogMode
Source§impl Serialize for QueryLogMode
impl Serialize for QueryLogMode
impl StructuralPartialEq for QueryLogMode
Auto Trait Implementations§
impl Freeze for QueryLogMode
impl RefUnwindSafe for QueryLogMode
impl Send for QueryLogMode
impl Sync for QueryLogMode
impl Unpin for QueryLogMode
impl UnsafeUnpin for QueryLogMode
impl UnwindSafe for QueryLogMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.