pub struct ResourceFact {Show 15 fields
pub invocation_id: ResourceInvocationId,
pub user_id: UserId,
pub session_id: SessionId,
pub invoked_at: DateTime<Utc>,
pub request_id: Option<AiRequestId>,
pub input_tokens: Option<i64>,
pub output_tokens: Option<i64>,
pub cache_read_tokens: Option<i64>,
pub cache_creation_tokens: Option<i64>,
pub cost_microdollars: Option<i64>,
pub latency_ms: Option<i64>,
pub failed: bool,
pub quality_score: Option<f64>,
pub successful: Option<bool>,
pub revision_verified: bool,
}Fields§
§invocation_id: ResourceInvocationId§user_id: UserId§session_id: SessionId§invoked_at: DateTime<Utc>§request_id: Option<AiRequestId>§input_tokens: Option<i64>§output_tokens: Option<i64>§cache_read_tokens: Option<i64>§cache_creation_tokens: Option<i64>§cost_microdollars: Option<i64>§latency_ms: Option<i64>§failed: bool§quality_score: Option<f64>§successful: Option<bool>§revision_verified: boolTrait Implementations§
Source§impl Clone for ResourceFact
impl Clone for ResourceFact
Source§fn clone(&self) -> ResourceFact
fn clone(&self) -> ResourceFact
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 ResourceFact
impl RefUnwindSafe for ResourceFact
impl Send for ResourceFact
impl Sync for ResourceFact
impl Unpin for ResourceFact
impl UnsafeUnpin for ResourceFact
impl UnwindSafe for ResourceFact
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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