pub struct RecordedAnswer {
pub status: EventStatus,
pub output: Option<Value>,
pub latency_ms: u64,
pub tokens: Option<Usage>,
pub cost_usd: Option<f64>,
}Expand description
What the recorded world did for one effect: the journaled outcome, resolved out of the snapshot’s payload references.
Fields§
§status: EventStatusHow the recorded call ended (Interrupted is rejected at load:
servable calls never produce it).
output: Option<Value>The recorded response payload.
latency_ms: u64The recorded latency in milliseconds (0 when unmeasured).
tokens: Option<Usage>The recorded token usage, when reported.
cost_usd: Option<f64>The recorded cost in USD, when known.
Trait Implementations§
Source§impl Clone for RecordedAnswer
impl Clone for RecordedAnswer
Auto Trait Implementations§
impl Freeze for RecordedAnswer
impl RefUnwindSafe for RecordedAnswer
impl Send for RecordedAnswer
impl Sync for RecordedAnswer
impl Unpin for RecordedAnswer
impl UnsafeUnpin for RecordedAnswer
impl UnwindSafe for RecordedAnswer
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