pub enum LoggingPolicy {
Off,
Fast(usize),
Pretty(usize),
}
Expand description
How detailed the logs of the requests should be
For Fast
and Pretty
the number is the maximum length of the body that will be logged
Logging will be with the debug
level
Variants§
Trait Implementations§
Source§impl Clone for LoggingPolicy
impl Clone for LoggingPolicy
Source§fn clone(&self) -> LoggingPolicy
fn clone(&self) -> LoggingPolicy
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 LoggingPolicy
impl Debug for LoggingPolicy
Source§impl<'de> Deserialize<'de> for LoggingPolicy
impl<'de> Deserialize<'de> for LoggingPolicy
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 LoggingPolicy
impl PartialEq for LoggingPolicy
Source§impl Serialize for LoggingPolicy
impl Serialize for LoggingPolicy
impl Copy for LoggingPolicy
impl Eq for LoggingPolicy
impl StructuralPartialEq for LoggingPolicy
Auto Trait Implementations§
impl Freeze for LoggingPolicy
impl RefUnwindSafe for LoggingPolicy
impl Send for LoggingPolicy
impl Sync for LoggingPolicy
impl Unpin for LoggingPolicy
impl UnwindSafe for LoggingPolicy
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,
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.