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