pub struct ScannerBuilder { /* private fields */ }Expand description
Implementations§
Source§impl ScannerBuilder
impl ScannerBuilder
Sourcepub fn from_registry(registry: RecognizerRegistry) -> Self
pub fn from_registry(registry: RecognizerRegistry) -> Self
Creates a scanner builder from an existing recognizer registry.
Sourcepub fn strategy(self, strategy: MaskStrategy) -> Self
pub fn strategy(self, strategy: MaskStrategy) -> Self
Sets the masking strategy.
Sourcepub fn without_masking(self) -> Self
pub fn without_masking(self) -> Self
Disables masked text generation.
Sourcepub fn recognizer<R>(self, recognizer: R) -> Selfwhere
R: Recognizer + 'static,
pub fn recognizer<R>(self, recognizer: R) -> Selfwhere
R: Recognizer + 'static,
Adds a recognizer.
Sourcepub fn boxed_recognizer(self, recognizer: Box<dyn Recognizer>) -> Self
pub fn boxed_recognizer(self, recognizer: Box<dyn Recognizer>) -> Self
Adds a boxed recognizer.
Sourcepub fn min_confidence(self, confidence: f64) -> Result<Self>
pub fn min_confidence(self, confidence: f64) -> Result<Self>
Sets the minimum confidence threshold.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScannerBuilder
impl !RefUnwindSafe for ScannerBuilder
impl Send for ScannerBuilder
impl Sync for ScannerBuilder
impl Unpin for ScannerBuilder
impl UnsafeUnpin for ScannerBuilder
impl !UnwindSafe for ScannerBuilder
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