#[non_exhaustive]pub struct ResolvedCandidate {
pub doi: String,
pub title: String,
pub author: String,
pub year: Option<i32>,
pub score: f64,
pub confidence: Confidence,
pub matched: Vec<String>,
pub source: String,
}Expand description
A candidate paper resolved from a bibliographic citation string.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.doi: StringResolved DOI.
title: StringTitle of the resolved candidate.
First author or primary author representation.
year: Option<i32>Publication year, if resolved.
score: f64Token similarity overlap score in 0.0..=1.0.
Thresholded at 0.5, so this is never below the floor — which is
exactly why it reads as a positive number even at its worst. Branch on
Self::confidence instead (#536).
confidence: ConfidenceSelf::score banded into something an agent can branch on without
knowing anything about the scorer (#536).
matched: Vec<String>The query tokens that were found in this candidate’s record.
The evidence behind the score, so a reader can see what matched: in
the #536 case it was quality, life, bipolar, 2010 — none of
them the author or the journal, which is the whole story.
source: StringResolving metadata source (e.g. "crossref").
Trait Implementations§
Source§impl Clone for ResolvedCandidate
impl Clone for ResolvedCandidate
Source§fn clone(&self) -> ResolvedCandidate
fn clone(&self) -> ResolvedCandidate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more