pub struct SessionRedactor { /* private fields */ }Implementations§
Source§impl SessionRedactor
impl SessionRedactor
pub fn new() -> Self
pub fn redact_fragment( &mut self, redactor: &Redactor, text: &str, ) -> Result<String, RedactorError>
pub fn build_session( &self, original_text: &str, redacted_text: &str, ) -> RedactionSession
pub fn max_token_len(&self) -> usize
Trait Implementations§
Source§impl Debug for SessionRedactor
impl Debug for SessionRedactor
Source§impl Default for SessionRedactor
impl Default for SessionRedactor
Source§fn default() -> SessionRedactor
fn default() -> SessionRedactor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionRedactor
impl RefUnwindSafe for SessionRedactor
impl Send for SessionRedactor
impl Sync for SessionRedactor
impl Unpin for SessionRedactor
impl UnsafeUnpin for SessionRedactor
impl UnwindSafe for SessionRedactor
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