langfuse_client_base/models/
dataset_status.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 DatasetStatus {
17    #[serde(rename = "ACTIVE")]
18    Active,
19    #[serde(rename = "ARCHIVED")]
20    Archived,
21}
22
23impl std::fmt::Display for DatasetStatus {
24    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25        match self {
26            Self::Active => write!(f, "ACTIVE"),
27            Self::Archived => write!(f, "ARCHIVED"),
28        }
29    }
30}
31
32impl Default for DatasetStatus {
33    fn default() -> DatasetStatus {
34        Self::Active
35    }
36}