openai_struct/models/api_key_list.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
11#[allow(unused_imports)]
12use serde_json::Value;
13
14/// # on openapi.yaml
15///
16/// ```yaml
17/// ApiKeyList:
18/// type: object
19/// properties:
20/// object:
21/// type: string
22/// example: list
23/// data:
24/// type: array
25/// items:
26/// $ref: "#/components/schemas/AdminApiKey"
27/// has_more:
28/// type: boolean
29/// example: false
30/// first_id:
31/// type: string
32/// example: key_abc
33/// last_id:
34/// type: string
35/// example: key_xyz
36/// ```
37#[derive(Debug, Serialize, Deserialize)]
38pub struct ApiKeyList {
39 #[serde(rename = "data")]
40 pub data: Option<Vec<crate::models::AdminApiKey>>,
41 #[serde(rename = "first_id")]
42 pub first_id: Option<String>,
43 #[serde(rename = "has_more")]
44 pub has_more: Option<bool>,
45 #[serde(rename = "last_id")]
46 pub last_id: Option<String>,
47 #[serde(rename = "object")]
48 pub object: Option<String>,
49}