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