pub struct ComputeTokensResult {
pub tokens_info: Vec<TokensInfo>,
}Expand description
Result of computing tokens, matching the Python SDK’s ComputeTokensResult.
Fields§
§tokens_info: Vec<TokensInfo>Token information for each content part.
Trait Implementations§
Source§impl Clone for ComputeTokensResult
impl Clone for ComputeTokensResult
Source§fn clone(&self) -> ComputeTokensResult
fn clone(&self) -> ComputeTokensResult
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 ComputeTokensResult
impl RefUnwindSafe for ComputeTokensResult
impl Send for ComputeTokensResult
impl Sync for ComputeTokensResult
impl Unpin for ComputeTokensResult
impl UnwindSafe for ComputeTokensResult
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