pub struct EvidentialResponse<T: Serialize> {
pub ep_version: String,
pub data: T,
pub claims: Vec<EvidentialClaim>,
pub aggregate_class: EvidenceClass,
pub aggregate_confidence: f64,
pub producer: String,
pub produced_at: String,
}Expand description
A complete EP/1.0 response envelope wrapping arbitrary data with epistemic metadata.
Fields§
§ep_version: StringProtocol version — always "1.0" for this implementation.
data: TThe payload data.
claims: Vec<EvidentialClaim>All claims made in this response.
aggregate_class: EvidenceClassWeakest class among all claims.
aggregate_confidence: f64Weighted mean confidence across all claims.
producer: StringIdentifier of the agent/system that produced this response.
produced_at: StringISO-8601 timestamp of when this response was produced.
Trait Implementations§
Source§impl<T: Clone + Serialize> Clone for EvidentialResponse<T>
impl<T: Clone + Serialize> Clone for EvidentialResponse<T>
Source§fn clone(&self) -> EvidentialResponse<T>
fn clone(&self) -> EvidentialResponse<T>
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<'de, T> Deserialize<'de> for EvidentialResponse<T>where
T: Deserialize<'de> + Serialize,
impl<'de, T> Deserialize<'de> for EvidentialResponse<T>where
T: Deserialize<'de> + Serialize,
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<T> Freeze for EvidentialResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for EvidentialResponse<T>where
T: RefUnwindSafe,
impl<T> Send for EvidentialResponse<T>where
T: Send,
impl<T> Sync for EvidentialResponse<T>where
T: Sync,
impl<T> Unpin for EvidentialResponse<T>where
T: Unpin,
impl<T> UnsafeUnpin for EvidentialResponse<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for EvidentialResponse<T>where
T: UnwindSafe,
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