pub struct StatLine<'a> {
pub tool: &'a str,
pub outcome: &'a str,
pub duration_us: u128,
pub args_summary: &'a str,
pub reason: Option<&'a str>,
pub call_id: Option<&'a str>,
pub extra: &'a [(&'a str, Value)],
}Expand description
One ledger line before it is written. reason is only meaningful for an
uncached or declined outcome. call_id is the caller’s id for the call,
already checked with accept_call_id; None makes the writer generate one.
extra carries producer-specific fields (the proxy’s completion-token
count, say), which the reader ignores when it does not know them.
Fields§
§tool: &'a str§outcome: &'a str§duration_us: u128§args_summary: &'a str§reason: Option<&'a str>§call_id: Option<&'a str>§extra: &'a [(&'a str, Value)]Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for StatLine<'a>
impl<'a> Freeze for StatLine<'a>
impl<'a> Move for StatLine<'a>
impl<'a> RefUnwindSafe for StatLine<'a>
impl<'a> Send for StatLine<'a>
impl<'a> Sync for StatLine<'a>
impl<'a> Unpin for StatLine<'a>
impl<'a> UnsafeUnpin for StatLine<'a>
impl<'a> UnwindSafe for StatLine<'a>
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