pub struct ResearchResult {
pub query: String,
pub status: VerificationStatus,
pub confidence: f64,
pub sources: Vec<VerifiedSource>,
pub consensus: ConsensusResult,
pub metrics: VerificationMetrics,
pub timestamp: DateTime<Utc>,
pub duration_ms: u64,
pub config_used: ResearchConfig,
pub warnings: Vec<String>,
}Expand description
Final research result
Fields§
§query: StringOriginal query/claim
status: VerificationStatusVerification status
confidence: f64Overall confidence (0.0 - 1.0)
sources: Vec<VerifiedSource>Verified sources used
consensus: ConsensusResultConsensus analysis result
metrics: VerificationMetricsVerification metrics
timestamp: DateTime<Utc>When the research was conducted
duration_ms: u64Research duration in milliseconds
config_used: ResearchConfigConfiguration used
warnings: Vec<String>Warnings or notes
Implementations§
Source§impl ResearchResult
impl ResearchResult
Sourcepub fn is_verified(&self) -> bool
pub fn is_verified(&self) -> bool
Check if the result is considered verified
Sourcepub fn has_problems(&self) -> bool
pub fn has_problems(&self) -> bool
Check if there are problems with the result
Sourcepub fn detailed_report(&self) -> String
pub fn detailed_report(&self) -> String
Get detailed report
Trait Implementations§
Source§impl Clone for ResearchResult
impl Clone for ResearchResult
Source§fn clone(&self) -> ResearchResult
fn clone(&self) -> ResearchResult
Returns a duplicate of the value. Read more
1.0.0 · 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 ResearchResult
impl Debug for ResearchResult
Source§impl<'de> Deserialize<'de> for ResearchResult
impl<'de> Deserialize<'de> for ResearchResult
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResearchResult
impl RefUnwindSafe for ResearchResult
impl Send for ResearchResult
impl Sync for ResearchResult
impl Unpin for ResearchResult
impl UnwindSafe for ResearchResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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