pub struct TokenEstimates {
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub total_tokens: u64,
}Expand description
Token usage estimates
Fields§
§total_input_tokens: u64Total input tokens across all LLM nodes
total_output_tokens: u64Total output tokens across all LLM nodes
total_tokens: u64Total tokens (input + output)
Trait Implementations§
Source§impl Clone for TokenEstimates
impl Clone for TokenEstimates
Source§fn clone(&self) -> TokenEstimates
fn clone(&self) -> TokenEstimates
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 Debug for TokenEstimates
impl Debug for TokenEstimates
Source§impl<'de> Deserialize<'de> for TokenEstimates
impl<'de> Deserialize<'de> for TokenEstimates
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TokenEstimates
impl RefUnwindSafe for TokenEstimates
impl Send for TokenEstimates
impl Sync for TokenEstimates
impl Unpin for TokenEstimates
impl UnwindSafe for TokenEstimates
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