pub struct CompiledValuePattern {
pub kind: FieldKind,
pub regex: Option<Regex>,
pub threshold: f32,
pub unique_rate_min: Option<f32>,
pub unique_rate_max: Option<f32>,
pub avg_len_min: Option<f32>,
pub avg_len_max: Option<f32>,
}Expand description
A value-sampling pattern with its regex pre-compiled.
Fields§
§kind: FieldKind§regex: Option<Regex>None when the pattern has no regex (purely statistical conditions).
threshold: f32§unique_rate_min: Option<f32>§unique_rate_max: Option<f32>§avg_len_min: Option<f32>§avg_len_max: Option<f32>Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompiledValuePattern
impl RefUnwindSafe for CompiledValuePattern
impl Send for CompiledValuePattern
impl Sync for CompiledValuePattern
impl Unpin for CompiledValuePattern
impl UnsafeUnpin for CompiledValuePattern
impl UnwindSafe for CompiledValuePattern
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