pub struct UsageEmbeddingsResult {
pub object: String,
pub input_tokens: i64,
pub num_model_requests: i64,
pub project_id: Option<String>,
pub user_id: Option<String>,
pub api_key_id: Option<String>,
pub model: Option<String>,
}
Expand description
The aggregated embeddings usage details of the specific time bucket.
Fields§
§object: String
§input_tokens: i64
The aggregated number of input tokens used.
num_model_requests: i64
The count of requests made to the model.
project_id: Option<String>
When group_by=project_id
, this field provides the project ID of the
grouped usage result.
user_id: Option<String>
When group_by=user_id
, this field provides the user ID of the grouped
usage result.
api_key_id: Option<String>
When group_by=api_key_id
, this field provides the API key ID of the
grouped usage result.
model: Option<String>
When group_by=model
, this field provides the model name of the grouped
usage result.
Trait Implementations§
Source§impl Clone for UsageEmbeddingsResult
impl Clone for UsageEmbeddingsResult
Source§fn clone(&self) -> UsageEmbeddingsResult
fn clone(&self) -> UsageEmbeddingsResult
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 UsageEmbeddingsResult
impl Debug for UsageEmbeddingsResult
Source§impl Default for UsageEmbeddingsResult
impl Default for UsageEmbeddingsResult
Source§fn default() -> UsageEmbeddingsResult
fn default() -> UsageEmbeddingsResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UsageEmbeddingsResult
impl RefUnwindSafe for UsageEmbeddingsResult
impl Send for UsageEmbeddingsResult
impl Sync for UsageEmbeddingsResult
impl Unpin for UsageEmbeddingsResult
impl UnwindSafe for UsageEmbeddingsResult
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