pub struct DefaultUsage {
pub prompt_tokens: u32,
pub completion_tokens: u32,
pub total_tokens: u64,
}Fields§
§prompt_tokens: u32§completion_tokens: u32§total_tokens: u64Trait Implementations§
Source§impl Clone for DefaultUsage
impl Clone for DefaultUsage
Source§fn clone(&self) -> DefaultUsage
fn clone(&self) -> DefaultUsage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Usage for DefaultUsage
impl Usage for DefaultUsage
fn get_prompt_tokens(&self) -> u32
fn get_completion_tokens(&self) -> u32
fn get_total_tokens(&self) -> u64
Auto Trait Implementations§
impl Freeze for DefaultUsage
impl RefUnwindSafe for DefaultUsage
impl Send for DefaultUsage
impl Sync for DefaultUsage
impl Unpin for DefaultUsage
impl UnwindSafe for DefaultUsage
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