pub struct HttpUsage {
pub input_tokens: Option<u64>,
pub output_tokens: Option<u64>,
}Expand description
Token usage from a single turn.
Fields§
§input_tokens: Option<u64>Input/prompt tokens consumed.
output_tokens: Option<u64>Output/completion tokens generated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpUsage
impl RefUnwindSafe for HttpUsage
impl Send for HttpUsage
impl Sync for HttpUsage
impl Unpin for HttpUsage
impl UnsafeUnpin for HttpUsage
impl UnwindSafe for HttpUsage
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