pub struct RedactionPolicy {
pub max_text_bytes: usize,
/* private fields */
}Fields§
§max_text_bytes: usizeImplementations§
Source§impl RedactionPolicy
impl RedactionPolicy
pub fn new( secrets: impl IntoIterator<Item = String>, max_text_bytes: usize, ) -> Self
pub fn redact(&self, value: &str) -> RedactedText
pub fn redact_with_limit( &self, value: &str, max_text_bytes: usize, ) -> RedactedText
Trait Implementations§
Source§impl Clone for RedactionPolicy
impl Clone for RedactionPolicy
Source§fn clone(&self) -> RedactionPolicy
fn clone(&self) -> RedactionPolicy
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 moreAuto Trait Implementations§
impl Freeze for RedactionPolicy
impl RefUnwindSafe for RedactionPolicy
impl Send for RedactionPolicy
impl Sync for RedactionPolicy
impl Unpin for RedactionPolicy
impl UnsafeUnpin for RedactionPolicy
impl UnwindSafe for RedactionPolicy
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