pub struct EmbeddingUsage {
pub prompt_tokens: u32,
pub total_tokens: u32,
}Expand description
Token usage for embedding requests.
Fields§
§prompt_tokens: u32Number of tokens in the input.
total_tokens: u32Total tokens processed.
Implementations§
Trait Implementations§
Source§impl Clone for EmbeddingUsage
impl Clone for EmbeddingUsage
Source§fn clone(&self) -> EmbeddingUsage
fn clone(&self) -> EmbeddingUsage
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 EmbeddingUsage
impl Debug for EmbeddingUsage
Source§impl Default for EmbeddingUsage
impl Default for EmbeddingUsage
Source§fn default() -> EmbeddingUsage
fn default() -> EmbeddingUsage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmbeddingUsage
impl RefUnwindSafe for EmbeddingUsage
impl Send for EmbeddingUsage
impl Sync for EmbeddingUsage
impl Unpin for EmbeddingUsage
impl UnwindSafe for EmbeddingUsage
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