pub struct Redactor { /* private fields */ }Implementations§
Source§impl Redactor
impl Redactor
pub fn redact(&self, text: &str) -> Result<RedactionResult, RedactorError>
pub fn redact_with_input_kind( &self, text: &str, input_kind: InputKind, ) -> Result<RedactionResult, RedactorError>
pub fn redact_with_source_path( &self, text: &str, source_path: &str, ) -> Result<RedactionResult, RedactorError>
pub fn redact_artifact( &self, text: &str, ) -> Result<RedactionArtifact, RedactorError>
pub fn redact_artifact_with_input_kind( &self, text: &str, input_kind: InputKind, ) -> Result<RedactionArtifact, RedactorError>
pub fn redact_artifact_with_input_kind_and_source( &self, text: &str, input_kind: InputKind, source_path: Option<&str>, ) -> Result<RedactionArtifact, RedactorError>
pub fn redact_with_session( &self, text: &str, ) -> Result<RedactionSession, RedactorError>
pub fn redact_with_session_input_kind( &self, text: &str, input_kind: InputKind, ) -> Result<RedactionSession, RedactorError>
pub fn detect(&self, text: &str) -> Result<Vec<Finding>, RedactorError>
pub fn detect_with_input_kind( &self, text: &str, input_kind: InputKind, ) -> Result<Vec<Finding>, RedactorError>
pub fn detect_with_source_path( &self, text: &str, source_path: &str, ) -> Result<Vec<Finding>, RedactorError>
pub fn restore_text( &self, text: &str, session: &RedactionSession, ) -> RestoreResult
pub fn restore_patch( &self, patch: &str, session: &RedactionSession, ) -> RestoreResult
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Redactor
impl RefUnwindSafe for Redactor
impl Send for Redactor
impl Sync for Redactor
impl Unpin for Redactor
impl UnsafeUnpin for Redactor
impl UnwindSafe for Redactor
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