openai_struct/models/admin_api_key.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/// pub AdminApiKey : Represents an individual Admin API key in an org.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct AdminApiKey {
18 /// The Unix timestamp (in seconds) of when the API key was created
19 #[serde(rename = "created_at")]
20 pub created_at: i64,
21 /// The identifier, which can be referenced in API endpoints
22 #[serde(rename = "id")]
23 pub id: String,
24 /// The Unix timestamp (in seconds) of when the API key was last used
25 #[serde(rename = "last_used_at")]
26 pub last_used_at: i64,
27 /// The name of the API key
28 #[serde(rename = "name")]
29 pub name: String,
30 /// The object type, which is always `organization.admin_api_key`
31 #[serde(rename = "object")]
32 pub object: String,
33 #[serde(rename = "owner")]
34 pub owner: crate::models::AdminApiKeyOwner,
35 /// The redacted value of the API key
36 #[serde(rename = "redacted_value")]
37 pub redacted_value: String,
38 /// The value of the API key. Only shown on create.
39 #[serde(rename = "value")]
40 pub value: Option<String>,
41}