pub struct Evidence {
pub class: EvidenceClass,
pub confidence: f64,
pub source: String,
pub reasoning: Option<String>,
pub timestamp: String,
pub ttl: Option<u64>,
pub sources: Option<Vec<EvidenceSource>>,
}Expand description
The epistemic metadata attached to a single claim.
Fields§
§class: EvidenceClassOverall classification.
confidence: f64Confidence score in [0.0, 1.0].
source: StringShort identifier of the producing agent or tool.
reasoning: Option<String>Required for EvidenceClass::Conjecture; explains the reasoning.
timestamp: StringISO-8601 timestamp of when the evidence was produced.
ttl: Option<u64>Optional time-to-live in seconds before the evidence expires.
sources: Option<Vec<EvidenceSource>>Optional provenance chain of upstream sources.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Evidence
impl<'de> Deserialize<'de> for Evidence
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 Evidence
impl RefUnwindSafe for Evidence
impl Send for Evidence
impl Sync for Evidence
impl Unpin for Evidence
impl UnsafeUnpin for Evidence
impl UnwindSafe for Evidence
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