pub struct RedactingCapture<C> { /* private fields */ }Expand description
Strips the Authorization header before the wrapped capture sees the record.
Composition: redaction is a layer over any recorder, not a feature each
recorder reimplements.
This removes the credential only. The bodies remain full-fidelity (a replay needs them); securing the stream itself is the operator’s responsibility.
Implementations§
Source§impl<C> RedactingCapture<C>
impl<C> RedactingCapture<C>
Trait Implementations§
Source§impl<C: Capture> Capture for RedactingCapture<C>
impl<C: Capture> Capture for RedactingCapture<C>
Source§impl<C: Clone> Clone for RedactingCapture<C>
impl<C: Clone> Clone for RedactingCapture<C>
Source§fn clone(&self) -> RedactingCapture<C>
fn clone(&self) -> RedactingCapture<C>
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<C: Copy> Copy for RedactingCapture<C>
Source§impl<C: Debug> Debug for RedactingCapture<C>
impl<C: Debug> Debug for RedactingCapture<C>
Source§impl<C: Default> Default for RedactingCapture<C>
impl<C: Default> Default for RedactingCapture<C>
Source§fn default() -> RedactingCapture<C>
fn default() -> RedactingCapture<C>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<C> Freeze for RedactingCapture<C>where
C: Freeze,
impl<C> RefUnwindSafe for RedactingCapture<C>where
C: RefUnwindSafe,
impl<C> Send for RedactingCapture<C>where
C: Send,
impl<C> Sync for RedactingCapture<C>where
C: Sync,
impl<C> Unpin for RedactingCapture<C>where
C: Unpin,
impl<C> UnsafeUnpin for RedactingCapture<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for RedactingCapture<C>where
C: UnwindSafe,
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