langfuse_client/models/
authentication_scheme.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)]
15#[cfg_attr(feature="bon", derive(bon::Builder))]
16pub struct AuthenticationScheme {
17    #[serde(rename = "name")]
18    pub name: String,
19    #[serde(rename = "description")]
20    pub description: String,
21    #[serde(rename = "specUri")]
22    pub spec_uri: String,
23    #[serde(rename = "type")]
24    pub r#type: String,
25    #[serde(rename = "primary")]
26    pub primary: bool,
27}
28
29impl AuthenticationScheme {
30    pub fn new(name: String, description: String, spec_uri: String, r#type: String, primary: bool) -> AuthenticationScheme {
31        AuthenticationScheme {
32            name,
33            description,
34            spec_uri,
35            r#type,
36            primary,
37        }
38    }
39}
40