openai_struct/models/metadata.rs
1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10/// pub Metadata : Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
11
12#[allow(unused_imports)]
13use serde_json::Value;
14
15/// # on openapi.yaml
16///
17/// ```yaml
18/// Metadata:
19/// type: object
20/// description: >
21/// Set of 16 key-value pairs that can be attached to an object. This can be
22///
23/// useful for storing additional information about the object in a
24/// structured
25///
26/// format, and querying for objects via API or the dashboard.
27///
28///
29/// Keys are strings with a maximum length of 64 characters. Values are
30/// strings
31///
32/// with a maximum length of 512 characters.
33/// ```
34#[derive(Debug, Clone, Default, Serialize, Deserialize)]
35pub struct Metadata {
36 #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
37 pub data: ::std::collections::HashMap<String, String>,
38}