langfuse_rs/models/
score_source.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 ScoreSource {
16	#[serde(rename = "ANNOTATION")]
17	Annotation,
18	#[serde(rename = "API")]
19	Api,
20	#[serde(rename = "EVAL")]
21	Eval,
22}
23
24impl std::fmt::Display for ScoreSource {
25	fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
26		match self {
27			Self::Annotation => write!(f, "ANNOTATION"),
28			Self::Api => write!(f, "API"),
29			Self::Eval => write!(f, "EVAL"),
30		}
31	}
32}
33
34impl Default for ScoreSource {
35	fn default() -> ScoreSource {
36		Self::Annotation
37	}
38}