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