#[non_exhaustive]pub struct SolveEvent<'a> {
pub solver: &'static str,
pub captcha_type: &'a CaptchaType,
pub kind: &'a DetectedCaptcha,
pub domain: &'a str,
pub outcome: SolveOutcome,
pub time_ms: u64,
pub confidence: Option<f32>,
pub method: &'a SolveMethod,
}Expand description
One solver attempt’s telemetry event. Borrowed where possible so hot-path implementations can avoid allocation.
confidence is only present on Success outcomes — the other
outcomes have no meaningful confidence value.
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.solver: &'static strStable solver identifier (e.g. "VlmCaptchaSolver").
captcha_type: &'a CaptchaTypeCaptcha type the chain mapped from the detection.
kind: &'a DetectedCaptchaOriginal detected captcha kind from the detector.
domain: &'a strDomain the solve targeted, parsed from CaptchaInfo.page_url.
outcome: SolveOutcomeWhat happened.
time_ms: u64Wall-clock duration of the attempt, in milliseconds.
confidence: Option<f32>Solve confidence in 0.0–1.0; None for non-Success outcomes.
method: &'a SolveMethodWhich solver strategy the attempt used.
Trait Implementations§
Source§impl<'a> Clone for SolveEvent<'a>
impl<'a> Clone for SolveEvent<'a>
Source§fn clone(&self) -> SolveEvent<'a>
fn clone(&self) -> SolveEvent<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for SolveEvent<'a>
impl<'a> RefUnwindSafe for SolveEvent<'a>
impl<'a> Send for SolveEvent<'a>
impl<'a> Sync for SolveEvent<'a>
impl<'a> Unpin for SolveEvent<'a>
impl<'a> UnsafeUnpin for SolveEvent<'a>
impl<'a> UnwindSafe for SolveEvent<'a>
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