pub struct ResearchConfig {
pub min_sources: usize,
pub max_sources: usize,
pub min_source_tier: SourceTier,
pub fetch_timeout_ms: u64,
pub max_parallel_fetches: usize,
pub min_agreement_ratio: f64,
pub enable_cache: bool,
pub cache_ttl_secs: u64,
pub require_https: bool,
pub include_snippets: bool,
pub max_snippet_length: usize,
}Expand description
Configuration for triangulated research
Fields§
§min_sources: usizeMinimum number of sources required (CONS-006: 3)
max_sources: usizeMaximum number of sources to fetch
min_source_tier: SourceTierMinimum source tier for inclusion (default: Tier2)
fetch_timeout_ms: u64Timeout for each source fetch (milliseconds)
max_parallel_fetches: usizeMaximum parallel fetches
min_agreement_ratio: f64Minimum agreement ratio for verification
enable_cache: boolEnable caching of verification results
cache_ttl_secs: u64Cache TTL in seconds
require_https: boolRequire HTTPS sources
include_snippets: boolInclude source snippets in results
max_snippet_length: usizeMaximum snippet length
Implementations§
Trait Implementations§
Source§impl Clone for ResearchConfig
impl Clone for ResearchConfig
Source§fn clone(&self) -> ResearchConfig
fn clone(&self) -> ResearchConfig
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 ResearchConfig
impl Debug for ResearchConfig
Source§impl Default for ResearchConfig
impl Default for ResearchConfig
Source§impl<'de> Deserialize<'de> for ResearchConfig
impl<'de> Deserialize<'de> for ResearchConfig
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 ResearchConfig
impl RefUnwindSafe for ResearchConfig
impl Send for ResearchConfig
impl Sync for ResearchConfig
impl Unpin for ResearchConfig
impl UnwindSafe for ResearchConfig
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