openai_struct/models/
realtime_server_event_error_error.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 RealtimeServerEventErrorError : Details of the error.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct RealtimeServerEventErrorError {
18    /// Error code, if any.
19    #[serde(rename = "code")]
20    pub code: Option<String>,
21    /// The event_id of the client event that caused the error, if applicable.
22    #[serde(rename = "event_id")]
23    pub event_id: Option<String>,
24    /// A human-readable error message.
25    #[serde(rename = "message")]
26    pub message: String,
27    /// Parameter related to the error, if any.
28    #[serde(rename = "param")]
29    pub param: Option<String>,
30    /// The type of error (e.g., \"invalid_request_error\", \"server_error\").
31    #[serde(rename = "type")]
32    pub _type: String,
33}