pub struct RedactedText(/* private fields */);Expand description
Final UTF-8 text produced by a redaction operation under its selected policy.
The value has crossed the runtime’s plain-text presentation boundary. It is
owned and can be rendered with std::fmt::Display without running another
redaction pass. This guarantee is policy-relative: a disabled policy or an
explicitly unredacted writer operation may deliberately preserve source
content. Callers must not treat this type as proof that the text is
confidential in every policy configuration. Any additional length
restriction belongs to the caller’s final logging or presentation sink.
§Examples
use qubit_redact::Redactor;
let output = Redactor::strict().redact_field("password", "raw-secret");
assert_eq!(output.text().as_str(), "<redacted>");Implementations§
Trait Implementations§
Source§impl AsRef<str> for RedactedText
impl AsRef<str> for RedactedText
Source§impl Clone for RedactedText
impl Clone for RedactedText
Source§fn clone(&self) -> RedactedText
fn clone(&self) -> RedactedText
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 RedactedText
impl Debug for RedactedText
Source§impl Display for RedactedText
impl Display for RedactedText
impl Eq for RedactedText
Source§impl Hash for RedactedText
impl Hash for RedactedText
Source§impl PartialEq for RedactedText
impl PartialEq for RedactedText
impl StructuralPartialEq for RedactedText
Auto Trait Implementations§
impl Freeze for RedactedText
impl RefUnwindSafe for RedactedText
impl Send for RedactedText
impl Sync for RedactedText
impl Unpin for RedactedText
impl UnsafeUnpin for RedactedText
impl UnwindSafe for RedactedText
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