pub struct TraceRedactionPolicy { /* private fields */ }Expand description
Redaction policy for trace capture and report sharing.
Implementations§
Source§impl TraceRedactionPolicy
impl TraceRedactionPolicy
pub fn none() -> Self
pub fn developer_default() -> Self
pub fn production_safe() -> Self
pub fn with_key(self, key: impl Into<String>) -> Self
pub fn with_redacted_text(self, value: impl Into<String>) -> Self
pub fn with_redact_server_html(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for TraceRedactionPolicy
impl Clone for TraceRedactionPolicy
Source§fn clone(&self) -> TraceRedactionPolicy
fn clone(&self) -> TraceRedactionPolicy
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 TraceRedactionPolicy
impl Debug for TraceRedactionPolicy
Source§impl Default for TraceRedactionPolicy
impl Default for TraceRedactionPolicy
Source§impl PartialEq for TraceRedactionPolicy
impl PartialEq for TraceRedactionPolicy
Source§fn eq(&self, other: &TraceRedactionPolicy) -> bool
fn eq(&self, other: &TraceRedactionPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TraceRedactionPolicy
impl StructuralPartialEq for TraceRedactionPolicy
Auto Trait Implementations§
impl Freeze for TraceRedactionPolicy
impl RefUnwindSafe for TraceRedactionPolicy
impl Send for TraceRedactionPolicy
impl Sync for TraceRedactionPolicy
impl Unpin for TraceRedactionPolicy
impl UnsafeUnpin for TraceRedactionPolicy
impl UnwindSafe for TraceRedactionPolicy
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