pub struct UsageEmbeddingsResult {
pub api_key_id: Option<String>,
pub input_tokens: i32,
pub model: Option<String>,
pub num_model_requests: i32,
pub object: String,
pub project_id: Option<String>,
pub user_id: Option<String>,
}
Fields§
§api_key_id: Option<String>
When group_by=api_key_id
, this field provides the API key ID of the grouped usage result.
input_tokens: i32
The aggregated number of input tokens used.
model: Option<String>
When group_by=model
, this field provides the model name of the grouped usage result.
num_model_requests: i32
The count of requests made to the model.
object: String
§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.
Trait Implementations§
Source§impl Debug for UsageEmbeddingsResult
impl Debug for UsageEmbeddingsResult
Source§impl<'de> Deserialize<'de> for UsageEmbeddingsResult
impl<'de> Deserialize<'de> for UsageEmbeddingsResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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