trieve_client/models/
role_proxy.rs

1/*
2 * Trieve API
3 *
4 * Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5 *
6 * The version of the OpenAPI document: 0.11.7
7 * Contact: developers@trieve.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// 
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
15pub enum RoleProxy {
16    #[serde(rename = "system")]
17    System,
18    #[serde(rename = "user")]
19    User,
20    #[serde(rename = "assistant")]
21    Assistant,
22
23}
24
25impl ToString for RoleProxy {
26    fn to_string(&self) -> String {
27        match self {
28            Self::System => String::from("system"),
29            Self::User => String::from("user"),
30            Self::Assistant => String::from("assistant"),
31        }
32    }
33}
34
35impl Default for RoleProxy {
36    fn default() -> RoleProxy {
37        Self::System
38    }
39}
40