pub struct LanguageModelInputTokens {
pub total: Option<u32>,
pub no_cache: Option<u32>,
pub cache_read: Option<u32>,
pub cache_write: Option<u32>,
}Expand description
Represents the token usage information for the input to a language model call.
Fields§
§total: Option<u32>§no_cache: Option<u32>§cache_read: Option<u32>§cache_write: Option<u32>Trait Implementations§
Source§impl Clone for LanguageModelInputTokens
impl Clone for LanguageModelInputTokens
Source§fn clone(&self) -> LanguageModelInputTokens
fn clone(&self) -> LanguageModelInputTokens
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 LanguageModelInputTokens
impl RefUnwindSafe for LanguageModelInputTokens
impl Send for LanguageModelInputTokens
impl Sync for LanguageModelInputTokens
impl Unpin for LanguageModelInputTokens
impl UnsafeUnpin for LanguageModelInputTokens
impl UnwindSafe for LanguageModelInputTokens
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