pub struct CallRecord {
pub call_index: u64,
pub caller: String,
pub capability: String,
pub started_micros: u64,
pub ended_micros: Option<u64>,
pub outcome: Option<CallOutcome>,
pub line: Option<SourceLine>,
pub request: Option<Box<PayloadRecord>>,
pub response: Option<Box<PayloadRecord>>,
pub usage: Option<ModelUsage>,
}Expand description
One host call. Times are microseconds measured from the recorder’s start.
Fields§
§call_index: u64Run-wide, in call order; the same index the call’s decisions carry.
caller: String§capability: String§started_micros: u64When the call began, at its security gate.
ended_micros: Option<u64>None while the call runs, and for an CallOutcome::Unfinished call.
outcome: Option<CallOutcome>§line: Option<SourceLine>The program line that led to the call, when known.
request: Option<Box<PayloadRecord>>What the call sent, when it reached outside the program.
response: Option<Box<PayloadRecord>>What came back, or the failure that came instead.
usage: Option<ModelUsage>Implementations§
Source§impl CallRecord
impl CallRecord
Sourcepub fn without_bodies(&self) -> Self
pub fn without_bodies(&self) -> Self
A copy without the payload bodies and meta, keeping each side’s digest, size, and
flags: what an observer that reports sizes needs, without copying up to
max_payload_bytes per side.
Trait Implementations§
Source§impl Clone for CallRecord
impl Clone for CallRecord
Source§impl Debug for CallRecord
impl Debug for CallRecord
Source§impl<'de> Deserialize<'de> for CallRecord
impl<'de> Deserialize<'de> for CallRecord
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 CallRecord
impl RefUnwindSafe for CallRecord
impl Send for CallRecord
impl Sync for CallRecord
impl Unpin for CallRecord
impl UnsafeUnpin for CallRecord
impl UnwindSafe for CallRecord
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