pub struct EvaluationOutput { /* private fields */ }Expand description
Target output plus optional Run/Trace correlation.
Implementations§
Source§impl EvaluationOutput
impl EvaluationOutput
Sourcepub const fn with_run_id(self, run_id: RunId) -> Self
pub const fn with_run_id(self, run_id: RunId) -> Self
Correlates this output with a Runifold Run and its trace.
Sourcepub fn with_metadata(
self,
key: impl Into<String>,
value: Value,
) -> Result<Self, EvaluationError>
pub fn with_metadata( self, key: impl Into<String>, value: Value, ) -> Result<Self, EvaluationError>
Sourcepub const fn with_metrics(self, metrics: EvaluationMetrics) -> Self
pub const fn with_metrics(self, metrics: EvaluationMetrics) -> Self
Attaches host-measured latency and optional Candidate usage.
Sourcepub const fn metrics(&self) -> Option<&EvaluationMetrics>
pub const fn metrics(&self) -> Option<&EvaluationMetrics>
Returns resource evidence associated with this execution.
Trait Implementations§
Source§impl Clone for EvaluationOutput
impl Clone for EvaluationOutput
Source§fn clone(&self) -> EvaluationOutput
fn clone(&self) -> EvaluationOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EvaluationOutput
impl RefUnwindSafe for EvaluationOutput
impl Send for EvaluationOutput
impl Sync for EvaluationOutput
impl Unpin for EvaluationOutput
impl UnsafeUnpin for EvaluationOutput
impl UnwindSafe for EvaluationOutput
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