pub enum HeaderRedactionMode {
Denylist,
Allowlist,
}Expand description
Which names get redacted before a trace event is built, or before a
verbose console log line is printed (RFC 040 Q1, extended by RFC 073
S-05 to query-string parameters and JSON body keys — see
DEFAULT_HEADER_DENYLIST’s doc comment).
Variants§
Denylist
Redact names in TraceConfig::header_denylist; capture
everything else. Fails open on an unanticipated name —
accepted deliberately, see RFC 040’s Risks table.
Allowlist
Capture only names in TraceConfig::header_allowlist; redact
everything else. Fails closed.
Trait Implementations§
Source§impl Clone for HeaderRedactionMode
impl Clone for HeaderRedactionMode
Source§fn clone(&self) -> HeaderRedactionMode
fn clone(&self) -> HeaderRedactionMode
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 HeaderRedactionMode
impl Debug for HeaderRedactionMode
impl Eq for HeaderRedactionMode
Source§impl PartialEq for HeaderRedactionMode
impl PartialEq for HeaderRedactionMode
impl StructuralPartialEq for HeaderRedactionMode
Auto Trait Implementations§
impl Freeze for HeaderRedactionMode
impl RefUnwindSafe for HeaderRedactionMode
impl Send for HeaderRedactionMode
impl Sync for HeaderRedactionMode
impl Unpin for HeaderRedactionMode
impl UnsafeUnpin for HeaderRedactionMode
impl UnwindSafe for HeaderRedactionMode
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,
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.