pub struct UsageRecord {
pub request_id: RequestId,
pub attempt_id: AttemptId,
pub prompt_tokens: u64,
pub completion_tokens: u64,
pub total_tokens: u64,
pub recorded_at_unix_seconds: u64,
}Fields§
§request_id: RequestId§attempt_id: AttemptId§prompt_tokens: u64§completion_tokens: u64§total_tokens: u64§recorded_at_unix_seconds: u64Trait Implementations§
Source§impl Clone for UsageRecord
impl Clone for UsageRecord
Source§impl Debug for UsageRecord
impl Debug for UsageRecord
impl Eq for UsageRecord
Source§impl PartialEq for UsageRecord
impl PartialEq for UsageRecord
impl StructuralPartialEq for UsageRecord
Auto Trait Implementations§
impl Freeze for UsageRecord
impl RefUnwindSafe for UsageRecord
impl Send for UsageRecord
impl Sync for UsageRecord
impl Unpin for UsageRecord
impl UnsafeUnpin for UsageRecord
impl UnwindSafe for UsageRecord
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