pub struct DiagnosticRedactionHandle { /* private fields */ }Expand description
Opaque reference to one unpublished item in a
crate::DiagnosticRedactionBatch.
§Examples
use qubit_redact::Redactor;
let mut batch = Redactor::standard().diagnostic_batch();
let handle = batch.redact_field("id", "42");
let diagnostics = batch.finish_with_marker("<incomplete>");
assert_eq!(diagnostics.text(handle).as_str(), "42");ⓘ
use qubit_redact::Redactor;
let mut batch = Redactor::strict().diagnostic_batch();
let handle = batch.redact_field("password", "raw-secret");
let _ = format!("{handle}");Trait Implementations§
Source§impl Clone for DiagnosticRedactionHandle
impl Clone for DiagnosticRedactionHandle
Source§fn clone(&self) -> DiagnosticRedactionHandle
fn clone(&self) -> DiagnosticRedactionHandle
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 Copy for DiagnosticRedactionHandle
Source§impl Debug for DiagnosticRedactionHandle
impl Debug for DiagnosticRedactionHandle
impl Eq for DiagnosticRedactionHandle
Source§impl Hash for DiagnosticRedactionHandle
impl Hash for DiagnosticRedactionHandle
impl StructuralPartialEq for DiagnosticRedactionHandle
Auto Trait Implementations§
impl Freeze for DiagnosticRedactionHandle
impl RefUnwindSafe for DiagnosticRedactionHandle
impl Send for DiagnosticRedactionHandle
impl Sync for DiagnosticRedactionHandle
impl Unpin for DiagnosticRedactionHandle
impl UnsafeUnpin for DiagnosticRedactionHandle
impl UnwindSafe for DiagnosticRedactionHandle
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