langfuse_client_base/models/
annotation_queue.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, Default, Debug, PartialEq, Serialize, Deserialize, bon::Builder)]
15pub struct AnnotationQueue {
16    #[serde(rename = "id")]
17    pub id: String,
18    #[serde(rename = "name")]
19    pub name: String,
20    #[serde(
21        rename = "description",
22        default,
23        with = "::serde_with::rust::double_option",
24        skip_serializing_if = "Option::is_none"
25    )]
26    pub description: Option<Option<String>>,
27    #[serde(rename = "scoreConfigIds")]
28    pub score_config_ids: Vec<String>,
29    #[serde(rename = "createdAt")]
30    pub created_at: String,
31    #[serde(rename = "updatedAt")]
32    pub updated_at: String,
33}
34
35impl AnnotationQueue {
36    pub fn new(
37        id: String,
38        name: String,
39        score_config_ids: Vec<String>,
40        created_at: String,
41        updated_at: String,
42    ) -> AnnotationQueue {
43        AnnotationQueue {
44            id,
45            name,
46            description: None,
47            score_config_ids,
48            created_at,
49            updated_at,
50        }
51    }
52}