openai_struct/models/
done_event.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 DoneEvent : Occurs when a stream ends.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16/// # on openapi.yaml
17///
18/// ```yaml
19/// DoneEvent:
20///   type: object
21///   properties:
22///     event:
23///       type: string
24///       enum:
25///         - done
26///       x-stainless-const: true
27///     data:
28///       type: string
29///       enum:
30///         - "[DONE]"
31///       x-stainless-const: true
32///   required:
33///     - event
34///     - data
35///   description: Occurs when a stream ends.
36///   x-oaiMeta:
37///     dataDescription: "`data` is `[DONE]`"
38/// ```
39#[derive(Debug, Serialize, Deserialize)]
40pub struct DoneEvent {
41    /// enum: done
42    #[serde(rename = "data")]
43    pub data: String,
44    /// enum: "\[DONE]"
45    #[serde(rename = "event")]
46    pub event: String,
47}