langfuse_client/models/
usage_details.rs

1/*
2 * langfuse
3 *
4 * ## Authentication  Authenticate with the API using [Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication), get API keys in the project settings:  - username: Langfuse Public Key - password: Langfuse Secret Key  ## Exports  - OpenAPI spec: https://cloud.langfuse.com/generated/api/openapi.yml - Postman collection: https://cloud.langfuse.com/generated/postman/collection.json
5 *
6 * The version of the OpenAPI document: 
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13#[cfg(not(feature = "ahash"))]
14use std::collections::HashMap;
15#[cfg(feature = "ahash")]
16use ahash::HashMap;
17#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
18#[serde(untagged)]
19pub enum UsageDetails {
20    Object(HashMap<String, i32>),
21    OpenAiCompletionUsageSchema(models::OpenAiCompletionUsageSchema),
22    OpenAiResponseUsageSchema(models::OpenAiResponseUsageSchema),
23}
24
25impl Default for UsageDetails {
26    fn default() -> Self {
27        Self::Object(Default::default())
28    }
29}
30