pub enum BundleRedactionPolicy {
None,
Standard,
Aggressive,
}Expand description
Controls how sensitive fields are treated when serialising a DiagnosticBundle.
§Example
use stygian_charon::bundle::BundleRedactionPolicy;
let policy = BundleRedactionPolicy::Standard;
assert!(!matches!(policy, BundleRedactionPolicy::None));Variants§
None
No redaction — full detail retained (development / local use only).
Standard
Redact cookies, auth headers, and URL credentials. This is the recommended default for incident reporting.
Aggressive
Redact all response headers and URL query parameters in addition to
everything covered by Standard.
Trait Implementations§
Source§impl Clone for BundleRedactionPolicy
impl Clone for BundleRedactionPolicy
Source§fn clone(&self) -> BundleRedactionPolicy
fn clone(&self) -> BundleRedactionPolicy
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 BundleRedactionPolicy
impl Debug for BundleRedactionPolicy
Source§impl Default for BundleRedactionPolicy
impl Default for BundleRedactionPolicy
Source§fn default() -> BundleRedactionPolicy
fn default() -> BundleRedactionPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BundleRedactionPolicy
impl<'de> Deserialize<'de> for BundleRedactionPolicy
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 BundleRedactionPolicy
impl PartialEq for BundleRedactionPolicy
Source§impl Serialize for BundleRedactionPolicy
impl Serialize for BundleRedactionPolicy
impl Copy for BundleRedactionPolicy
impl Eq for BundleRedactionPolicy
impl StructuralPartialEq for BundleRedactionPolicy
Auto Trait Implementations§
impl Freeze for BundleRedactionPolicy
impl RefUnwindSafe for BundleRedactionPolicy
impl Send for BundleRedactionPolicy
impl Sync for BundleRedactionPolicy
impl Unpin for BundleRedactionPolicy
impl UnsafeUnpin for BundleRedactionPolicy
impl UnwindSafe for BundleRedactionPolicy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more