1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* OpenAI API
*
* The OpenAI REST API. Please see pub https:///platform.openai.com/docs/api-reference for more details.
*
* OpenAPI spec pub version: 2.3.0
*
* Generated pub by: https:///github.com/swagger-api/swagger-codegen.git
*/
/// pub AuditLogActorApiKey : The API Key used to perform the audit logged action.
#[allow(unused_imports)]
use serde_json::Value;
/// # on openapi.yaml
///
/// ```yaml
/// AuditLogActorApiKey:
/// type: object
/// description: The API Key used to perform the audit logged action.
/// properties:
/// id:
/// type: string
/// description: The tracking id of the API key.
/// type:
/// type: string
/// description: The type of API key. Can be either `user` or `service_account`.
/// enum:
/// - user
/// - service_account
/// user:
/// $ref: "#/components/schemas/AuditLogActorUser"
/// service_account:
/// $ref: "#/components/schemas/AuditLogActorServiceAccount"
/// ```
#[derive(Debug, Serialize, Deserialize)]
pub struct AuditLogActorApiKey {
/// The tracking id of the API key.
#[serde(rename = "id")]
pub id: Option<String>,
#[serde(rename = "service_account")]
pub service_account: Option<crate::models::AuditLogActorServiceAccount>,
/// The type of API key. Can be either `user` or `service_account`.
#[serde(rename = "type")]
pub _type: Option<String>,
#[serde(rename = "user")]
pub user: Option<crate::models::AuditLogActorUser>,
}