langfuse_client/models/
observation_type.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
14/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum ObservationType {
17    #[serde(rename = "SPAN")]
18    Span,
19    #[serde(rename = "GENERATION")]
20    Generation,
21    #[serde(rename = "EVENT")]
22    Event,
23
24}
25
26impl std::fmt::Display for ObservationType {
27    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
28        match self {
29            Self::Span => write!(f, "SPAN"),
30            Self::Generation => write!(f, "GENERATION"),
31            Self::Event => write!(f, "EVENT"),
32        }
33    }
34}
35
36impl Default for ObservationType {
37    fn default() -> ObservationType {
38        Self::Span
39    }
40}
41