pub struct DetectorMatchConfidenceSpec {Show 25 fields
pub literal_prefix_weight: f64,
pub context_anchor_weight: f64,
pub entropy_weight: f64,
pub high_entropy_partial_weight: f64,
pub moderate_entropy_threshold: f64,
pub moderate_entropy_weight: f64,
pub low_entropy_penalty_floor: f64,
pub low_entropy_min_match_length: usize,
pub low_entropy_penalty_multiplier: f64,
pub keyword_nearby_weight: f64,
pub sensitive_file_weight: f64,
pub companion_weight: f64,
pub very_high_entropy_margin: f64,
pub named_anchor_floor: Option<f64>,
pub low_promise_confidence: Option<f64>,
pub assignment_context_multiplier: f64,
pub string_literal_context_multiplier: f64,
pub unknown_context_multiplier: f64,
pub documentation_context_multiplier: f64,
pub comment_context_multiplier: f64,
pub test_context_multiplier: f64,
pub encrypted_context_multiplier: f64,
pub soft_context_suppression_threshold: f64,
pub encrypted_context_suppression_threshold: f64,
pub post_match: DetectorPostMatchConfidenceSpec,
}Expand description
Complete detector-local confidence policy for regex candidates.
Fields§
§literal_prefix_weight: f64Weight earned by a detector-specific literal prefix.
context_anchor_weight: f64Weight earned by a required contextual capture.
entropy_weight: f64Full weight earned at the very-high entropy tier.
high_entropy_partial_weight: f64Partial weight earned at the resolved high entropy tier.
moderate_entropy_threshold: f64Shannon threshold for moderate entropy evidence.
moderate_entropy_weight: f64Weight earned at the moderate entropy tier.
low_entropy_penalty_floor: f64Shannon floor below which a long match receives a penalty.
low_entropy_min_match_length: usizeMinimum byte length above which the low-entropy penalty applies.
low_entropy_penalty_multiplier: f64Multiplier applied when the low-entropy penalty fires.
keyword_nearby_weight: f64Weight earned when detector-owned context is nearby.
sensitive_file_weight: f64Weight earned in a sensitive file.
companion_weight: f64Weight earned when a companion capture is present.
very_high_entropy_margin: f64Margin above the resolved high tier for full entropy evidence.
named_anchor_floor: Option<f64>Structural floor for a non-generic match carrying a compiled anchor.
low_promise_confidence: Option<f64>Final score for an unaccompanied generic match rejected by the cheap promise gate before model inference.
assignment_context_multiplier: f64Confidence multiplier for an assignment context.
string_literal_context_multiplier: f64Confidence multiplier for a string-literal context.
unknown_context_multiplier: f64Confidence multiplier when source context is unknown.
documentation_context_multiplier: f64Confidence multiplier for documentation context.
comment_context_multiplier: f64Confidence multiplier for comment context.
test_context_multiplier: f64Confidence multiplier for test-code context.
encrypted_context_multiplier: f64Confidence multiplier for encrypted or sealed context.
soft_context_suppression_threshold: f64Hard-suppression threshold for comment, test, and documentation context.
encrypted_context_suppression_threshold: f64Hard-suppression threshold for encrypted or sealed context.
post_match: DetectorPostMatchConfidenceSpecDetector-owned policy applied after optional model scoring.
Implementations§
Trait Implementations§
Source§impl Clone for DetectorMatchConfidenceSpec
impl Clone for DetectorMatchConfidenceSpec
Source§fn clone(&self) -> DetectorMatchConfidenceSpec
fn clone(&self) -> DetectorMatchConfidenceSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DetectorMatchConfidenceSpec
Source§impl Debug for DetectorMatchConfidenceSpec
impl Debug for DetectorMatchConfidenceSpec
Source§impl<'de> Deserialize<'de> for DetectorMatchConfidenceSpec
impl<'de> Deserialize<'de> for DetectorMatchConfidenceSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for DetectorMatchConfidenceSpec
Auto Trait Implementations§
impl Freeze for DetectorMatchConfidenceSpec
impl RefUnwindSafe for DetectorMatchConfidenceSpec
impl Send for DetectorMatchConfidenceSpec
impl Sync for DetectorMatchConfidenceSpec
impl Unpin for DetectorMatchConfidenceSpec
impl UnsafeUnpin for DetectorMatchConfidenceSpec
impl UnwindSafe for DetectorMatchConfidenceSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more