#[non_exhaustive]pub struct StrategyDetectionOptions {
pub enum_max_cardinality: usize,
pub enum_coverage_threshold: f64,
pub path_like_slash_ratio: f64,
pub group_preference: Vec<String>,
pub default_bands: u8,
}Expand description
Tunable inputs for §4.5 strategy and grouping-field detection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enum_max_cardinality: usizeMaximum distinct values that may still be treated as enum-like.
enum_coverage_threshold: f64Top-value coverage threshold for enum-like string detection.
path_like_slash_ratio: f64Minimum ratio of values containing a path separator (/, ::,
or .) before a string field is considered path-like. The name
is preserved for backwards compatibility.
group_preference: Vec<String>Canonical field names preferred when auto-picking a grouping field.
default_bands: u8Default band count for continuous numeric fields.
Trait Implementations§
Source§impl Clone for StrategyDetectionOptions
impl Clone for StrategyDetectionOptions
Source§fn clone(&self) -> StrategyDetectionOptions
fn clone(&self) -> StrategyDetectionOptions
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 moreSource§impl Debug for StrategyDetectionOptions
impl Debug for StrategyDetectionOptions
Source§impl Default for StrategyDetectionOptions
impl Default for StrategyDetectionOptions
Source§impl PartialEq for StrategyDetectionOptions
impl PartialEq for StrategyDetectionOptions
impl StructuralPartialEq for StrategyDetectionOptions
Auto Trait Implementations§
impl Freeze for StrategyDetectionOptions
impl RefUnwindSafe for StrategyDetectionOptions
impl Send for StrategyDetectionOptions
impl Sync for StrategyDetectionOptions
impl Unpin for StrategyDetectionOptions
impl UnsafeUnpin for StrategyDetectionOptions
impl UnwindSafe for StrategyDetectionOptions
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