Skip to main content

langfuse_client_base/models/
score.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, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(untagged)]
16pub enum Score {
17    ScoreOneOf(Box<models::ScoreOneOf>),
18    ScoreOneOf1(Box<models::ScoreOneOf1>),
19    ScoreOneOf2(Box<models::ScoreOneOf2>),
20    ScoreOneOf3(Box<models::ScoreOneOf3>),
21}
22
23impl Default for Score {
24    fn default() -> Self {
25        Self::ScoreOneOf(Default::default())
26    }
27}
28///
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum DataType {
31    #[serde(rename = "CORRECTION")]
32    Correction,
33}
34
35impl Default for DataType {
36    fn default() -> DataType {
37        Self::Correction
38    }
39}