pub struct ContextUsageBucket {
pub provider: String,
pub model: String,
pub call_purpose: ContextCallPurpose,
pub call_scope: ContextCallScope,
pub calls: u64,
pub tokens_in: u64,
pub tokens_out: u64,
pub cache_read: u64,
pub cache_write: u64,
}Fields§
§provider: String§model: String§call_purpose: ContextCallPurpose§call_scope: ContextCallScope§calls: u64§tokens_in: u64Total prompt input, including cache hits.
tokens_out: u64§cache_read: u64§cache_write: u64Implementations§
Source§impl ContextUsageBucket
impl ContextUsageBucket
pub fn is_primary(&self) -> bool
Trait Implementations§
Source§impl Clone for ContextUsageBucket
impl Clone for ContextUsageBucket
Source§fn clone(&self) -> ContextUsageBucket
fn clone(&self) -> ContextUsageBucket
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 moreSource§impl Debug for ContextUsageBucket
impl Debug for ContextUsageBucket
Source§impl Default for ContextUsageBucket
impl Default for ContextUsageBucket
Source§fn default() -> ContextUsageBucket
fn default() -> ContextUsageBucket
Returns the “default value” for a type. Read more
Source§impl PartialEq for ContextUsageBucket
impl PartialEq for ContextUsageBucket
impl StructuralPartialEq for ContextUsageBucket
Auto Trait Implementations§
impl Freeze for ContextUsageBucket
impl RefUnwindSafe for ContextUsageBucket
impl Send for ContextUsageBucket
impl Sync for ContextUsageBucket
impl Unpin for ContextUsageBucket
impl UnsafeUnpin for ContextUsageBucket
impl UnwindSafe for ContextUsageBucket
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.