pub struct CheckOutcome {
pub site: String,
pub url: String,
pub kind: MatchKind,
pub reason: Option<UncertainReason>,
pub elapsed_ms: u64,
pub enrichment: BTreeMap<String, String>,
pub evidence: Vec<String>,
pub profile_evidence: Vec<ProfileEvidence>,
pub confidence: ConfidenceScore,
pub transport: Option<TransportTier>,
pub escalations: u8,
}Expand description
Result of probing a single site for a username.
Fields§
§site: StringSite name (matches Site::name).
url: StringConcrete URL that was requested.
kind: MatchKindVerdict produced by the site’s detection strategy.
reason: Option<UncertainReason>Why the outcome is Uncertain, if it is. None for Found /
NotFound.
elapsed_ms: u64Wall-clock duration of the probe.
enrichment: BTreeMap<String, String>Fields extracted from a Found profile when --enrich is active
(e.g. name, bio, avatar). Empty unless enrichment ran and the
site has extractor rules. Ordered by field name.
evidence: Vec<String>Human-readable descriptions of the signals that produced the verdict —
e.g. "HTTP 404 (status_not_found)". Empty for Uncertain (no signal
fired). Surfaced by --explain; always present in JSON output.
profile_evidence: Vec<ProfileEvidence>Normalized profile facts collected from extraction/enrichment. This is
distinct from the legacy evidence field above: evidence explains
the detection signal, while profile_evidence is structured product
data for confidence scoring, identity clustering, timelines, and
reports.
confidence: ConfidenceScoreExplainable confidence in this per-site verdict.
transport: Option<TransportTier>Which transport produced this outcome (HTTP / impersonate / browser).
None only on outcomes from older persisted scans saved before this
field existed; live scans always populate it.
escalations: u8Number of automatic escalations to a heavier transport beyond the
site’s primary route — usually 0, at most 1 today (HTTP / impersonate
→ browser on Uncertain(CloudflareChallenge | RateLimited)).
Stamped so the doctor can spot sites where the primary route
systematically fails and the registry should pre-tag them.
Implementations§
Source§impl CheckOutcome
impl CheckOutcome
Sourcepub fn refresh_confidence(&mut self)
pub fn refresh_confidence(&mut self)
Recompute confidence after callers attach signal or profile evidence.
Sourcepub fn refresh_confidence_with_history(
&mut self,
historical_consistency_count: usize,
)
pub fn refresh_confidence_with_history( &mut self, historical_consistency_count: usize, )
Recompute confidence with a derived historical-consistency overlay.
Live scan paths should call Self::refresh_confidence so outcomes
remain stateless. Persisted/history views can call this method after
computing a non-persisted history count.
Trait Implementations§
Source§impl Clone for CheckOutcome
impl Clone for CheckOutcome
Source§fn clone(&self) -> CheckOutcome
fn clone(&self) -> CheckOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more