Skip to main content

langfuse_client_base/models/
ingestion_usage.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
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
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(untagged)]
16pub enum IngestionUsage {
17    Usage(Box<models::Usage>),
18    OpenAiUsage(Box<models::OpenAiUsage>),
19}
20
21impl Default for IngestionUsage {
22    fn default() -> Self {
23        Self::Usage(Default::default())
24    }
25}