langfuse_client_base/models/
create_score_value.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/// CreateScoreValue : The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores
15/// The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores
16#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
17#[serde(untagged)]
18pub enum CreateScoreValue {
19    Number(f64),
20    String(String),
21}
22
23impl Default for CreateScoreValue {
24    fn default() -> Self {
25        Self::Number(Default::default())
26    }
27}