Skip to main content

langfuse_client_base/models/
pricing_tier_operator.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
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/// PricingTierOperator : Comparison operators for pricing tier conditions
15/// Comparison operators for pricing tier conditions
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum PricingTierOperator {
18    #[serde(rename = "gt")]
19    Gt,
20    #[serde(rename = "gte")]
21    Gte,
22    #[serde(rename = "lt")]
23    Lt,
24    #[serde(rename = "lte")]
25    Lte,
26    #[serde(rename = "eq")]
27    Eq,
28    #[serde(rename = "neq")]
29    Neq,
30}
31
32impl std::fmt::Display for PricingTierOperator {
33    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
34        match self {
35            Self::Gt => write!(f, "gt"),
36            Self::Gte => write!(f, "gte"),
37            Self::Lt => write!(f, "lt"),
38            Self::Lte => write!(f, "lte"),
39            Self::Eq => write!(f, "eq"),
40            Self::Neq => write!(f, "neq"),
41        }
42    }
43}
44
45impl Default for PricingTierOperator {
46    fn default() -> PricingTierOperator {
47        Self::Gt
48    }
49}