openai_struct/models/
input_message_resource.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#[allow(unused_imports)]
12use serde_json::Value;
13
14#[derive(Debug, Serialize, Deserialize)]
15pub struct InputMessageResource {
16    #[serde(rename = "content")]
17    pub content: crate::models::InputMessageContentList,
18    /// The role of the message input. One of `user`, `system`, or `developer`.
19    #[serde(rename = "role")]
20    pub role: String,
21    /// The status of item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.
22    #[serde(rename = "status")]
23    pub status: Option<String>,
24    /// The type of the message input. Always set to `message`.
25    #[serde(rename = "type")]
26    pub _type: Option<String>,
27    /// The unique ID of the message input.
28    #[serde(rename = "id")]
29    pub id: String,
30}