pub struct EvidenceUpdate {
pub id: String,
pub execution_id: ExecutionId,
pub source: EvidenceSource,
pub title: String,
pub content: Value,
pub confidence: Option<f64>,
pub impact: EvidenceImpact,
pub created_at: DateTime<Utc>,
}Expand description
Evidence update - new information that may affect execution
Fields§
§id: StringUnique message ID
execution_id: ExecutionIdTarget execution
source: EvidenceSourceSource of evidence
title: StringThe evidence content
content: ValueDetailed content
confidence: Option<f64>Confidence score (0.0 - 1.0)
impact: EvidenceImpactImpact classification
created_at: DateTime<Utc>When the message was created
Implementations§
Source§impl EvidenceUpdate
impl EvidenceUpdate
Sourcepub fn new(
execution_id: ExecutionId,
source: EvidenceSource,
title: impl Into<String>,
content: Value,
impact: EvidenceImpact,
) -> Self
pub fn new( execution_id: ExecutionId, source: EvidenceSource, title: impl Into<String>, content: Value, impact: EvidenceImpact, ) -> Self
Create a new evidence update
Sourcepub fn with_confidence(self, confidence: f64) -> Self
pub fn with_confidence(self, confidence: f64) -> Self
Set confidence score
Trait Implementations§
Source§impl Clone for EvidenceUpdate
impl Clone for EvidenceUpdate
Source§fn clone(&self) -> EvidenceUpdate
fn clone(&self) -> EvidenceUpdate
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 EvidenceUpdate
impl Debug for EvidenceUpdate
Source§impl<'de> Deserialize<'de> for EvidenceUpdate
impl<'de> Deserialize<'de> for EvidenceUpdate
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 EvidenceUpdate
impl RefUnwindSafe for EvidenceUpdate
impl Send for EvidenceUpdate
impl Sync for EvidenceUpdate
impl Unpin for EvidenceUpdate
impl UnsafeUnpin for EvidenceUpdate
impl UnwindSafe for EvidenceUpdate
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