openai_struct/models/audit_log_actor.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 AuditLogActor : The actor who performed the audit logged action.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16/// # on openapi.yaml
17///
18/// ```yaml
19/// AuditLogActor:
20/// type: object
21/// description: The actor who performed the audit logged action.
22/// properties:
23/// type:
24/// type: string
25/// description: The type of actor. Is either `session` or `api_key`.
26/// enum:
27/// - session
28/// - api_key
29/// session:
30/// $ref: "#/components/schemas/AuditLogActorSession"
31/// api_key:
32/// $ref: "#/components/schemas/AuditLogActorApiKey"
33/// ```
34#[derive(Debug, Serialize, Deserialize)]
35pub struct AuditLogActor {
36 #[serde(rename = "api_key")]
37 pub api_key: Option<crate::models::AuditLogActorApiKey>,
38 #[serde(rename = "session")]
39 pub session: Option<crate::models::AuditLogActorSession>,
40 /// The type of actor. Is either `session` or `api_key`.
41 #[serde(rename = "type")]
42 pub _type: Option<String>,
43}