pub struct CreateEmbeddingResponse_Usage {
pub prompt_tokens: i64,
pub total_tokens: i64,
}
Expand description
The usage information for the request.
Fields§
§prompt_tokens: i64
The number of tokens used by the prompt.
total_tokens: i64
The total number of tokens used by the request.
Trait Implementations§
Source§impl Clone for CreateEmbeddingResponse_Usage
impl Clone for CreateEmbeddingResponse_Usage
Source§fn clone(&self) -> CreateEmbeddingResponse_Usage
fn clone(&self) -> CreateEmbeddingResponse_Usage
Returns a copy 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 Default for CreateEmbeddingResponse_Usage
impl Default for CreateEmbeddingResponse_Usage
Source§fn default() -> CreateEmbeddingResponse_Usage
fn default() -> CreateEmbeddingResponse_Usage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateEmbeddingResponse_Usage
impl RefUnwindSafe for CreateEmbeddingResponse_Usage
impl Send for CreateEmbeddingResponse_Usage
impl Sync for CreateEmbeddingResponse_Usage
impl Unpin for CreateEmbeddingResponse_Usage
impl UnwindSafe for CreateEmbeddingResponse_Usage
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