pub struct AiUsageStats {
pub model: String,
pub prompt_tokens: u32,
pub completion_tokens: u32,
pub total_tokens: u32,
}Expand description
AI usage statistics.
Fields§
§model: StringName of the model used.
prompt_tokens: u32Number of prompt tokens used.
completion_tokens: u32Number of completion tokens used.
total_tokens: u32Total number of tokens used.
Trait Implementations§
Source§impl Clone for AiUsageStats
impl Clone for AiUsageStats
Source§fn clone(&self) -> AiUsageStats
fn clone(&self) -> AiUsageStats
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 moreAuto Trait Implementations§
impl Freeze for AiUsageStats
impl RefUnwindSafe for AiUsageStats
impl Send for AiUsageStats
impl Sync for AiUsageStats
impl Unpin for AiUsageStats
impl UnwindSafe for AiUsageStats
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