openai_struct/models/realtime_client_event_response_cancel.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 RealtimeClientEventResponseCancel : Send this event to cancel an in-progress response. The server will respond with a `response.cancelled` event or an error if there is no response to cancel.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct RealtimeClientEventResponseCancel {
18 /// Optional client-generated ID used to identify this event.
19 #[serde(rename = "event_id")]
20 pub event_id: Option<String>,
21 /// A specific response ID to cancel - if not provided, will cancel an in-progress response in the default conversation.
22 #[serde(rename = "response_id")]
23 pub response_id: Option<String>,
24 /// The event type, must be `response.cancel`.
25 #[serde(rename = "type")]
26 pub _type: String,
27}