openai_struct/models/audit_log_actor_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 AuditLogActorApiKey : The API Key used to perform the audit logged action.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16/// # on openapi.yaml
17///
18/// ```yaml
19/// AuditLogActorApiKey:
20/// type: object
21/// description: The API Key used to perform the audit logged action.
22/// properties:
23/// id:
24/// type: string
25/// description: The tracking id of the API key.
26/// type:
27/// type: string
28/// description: The type of API key. Can be either `user` or `service_account`.
29/// enum:
30/// - user
31/// - service_account
32/// user:
33/// $ref: "#/components/schemas/AuditLogActorUser"
34/// service_account:
35/// $ref: "#/components/schemas/AuditLogActorServiceAccount"
36/// ```
37#[derive(Debug, Serialize, Deserialize)]
38pub struct AuditLogActorApiKey {
39 /// The tracking id of the API key.
40 #[serde(rename = "id")]
41 pub id: Option<String>,
42 #[serde(rename = "service_account")]
43 pub service_account: Option<crate::models::AuditLogActorServiceAccount>,
44 /// The type of API key. Can be either `user` or `service_account`.
45 #[serde(rename = "type")]
46 pub _type: Option<String>,
47 #[serde(rename = "user")]
48 pub user: Option<crate::models::AuditLogActorUser>,
49}