langfuse_client_base/models/create_score_source.rs
1/*
2 * server
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/// CreateScoreSource : Source values accepted when creating a score via the public REST API. EVAL is reserved for internal evaluator outputs and is intentionally not exposed here — use commons.ScoreSource when reading scores.
15/// Source values accepted when creating a score via the public REST API. EVAL is reserved for internal evaluator outputs and is intentionally not exposed here — use commons.ScoreSource when reading scores.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum CreateScoreSource {
18 #[serde(rename = "API")]
19 Api,
20 #[serde(rename = "ANNOTATION")]
21 Annotation,
22}
23
24impl std::fmt::Display for CreateScoreSource {
25 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
26 match self {
27 Self::Api => write!(f, "API"),
28 Self::Annotation => write!(f, "ANNOTATION"),
29 }
30 }
31}
32
33impl Default for CreateScoreSource {
34 fn default() -> CreateScoreSource {
35 Self::Api
36 }
37}