pub struct AiCallRecord {
pub timestamp_ms: i64,
pub model: String,
pub provider: &'static str,
pub task: Task,
pub kind: BackendKind,
pub batch_size: u32,
pub usage: Usage,
pub latency_ms: u64,
pub outcome: CallOutcome,
}Expand description
One logged inference call.
Fields§
§timestamp_ms: i64Wall-clock time the call completed (epoch milliseconds).
model: StringRegistry model name (e.g. finbert, haiku).
provider: &'static strBackend-kind identity reported by the provider (e.g. anthropic).
task: TaskThe task performed.
kind: BackendKindThe backend kind.
batch_size: u32Number of rows in the batch.
usage: UsageToken/cost accounting (zero for local).
latency_ms: u64End-to-end latency of the batch call.
outcome: CallOutcomeOutcome.
Trait Implementations§
Source§impl Clone for AiCallRecord
impl Clone for AiCallRecord
Source§fn clone(&self) -> AiCallRecord
fn clone(&self) -> AiCallRecord
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 moreSource§impl Debug for AiCallRecord
impl Debug for AiCallRecord
Source§impl PartialEq for AiCallRecord
impl PartialEq for AiCallRecord
Source§fn eq(&self, other: &AiCallRecord) -> bool
fn eq(&self, other: &AiCallRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AiCallRecord
impl StructuralPartialEq for AiCallRecord
Auto Trait Implementations§
impl Freeze for AiCallRecord
impl RefUnwindSafe for AiCallRecord
impl Send for AiCallRecord
impl Sync for AiCallRecord
impl Unpin for AiCallRecord
impl UnsafeUnpin for AiCallRecord
impl UnwindSafe for AiCallRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more