pub struct CountTokensResult {
pub total_tokens: usize,
}Expand description
Result of counting tokens, matching the Python SDK’s CountTokensResult.
Fields§
§total_tokens: usizeThe total number of tokens.
Trait Implementations§
Source§impl Clone for CountTokensResult
impl Clone for CountTokensResult
Source§fn clone(&self) -> CountTokensResult
fn clone(&self) -> CountTokensResult
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 CountTokensResult
impl Debug for CountTokensResult
Auto Trait Implementations§
impl Freeze for CountTokensResult
impl RefUnwindSafe for CountTokensResult
impl Send for CountTokensResult
impl Sync for CountTokensResult
impl Unpin for CountTokensResult
impl UnwindSafe for CountTokensResult
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