openai_struct/models/response_item_list.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 ResponseItemList : A list of Response items.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct ResponseItemList {
18 /// A list of items used to generate this response.
19 #[serde(rename = "data")]
20 pub data: Vec<crate::models::ItemResource>,
21 /// The ID of the first item in the list.
22 #[serde(rename = "first_id")]
23 pub first_id: String,
24 /// Whether there are more items available.
25 #[serde(rename = "has_more")]
26 pub has_more: bool,
27 /// The ID of the last item in the list.
28 #[serde(rename = "last_id")]
29 pub last_id: String,
30 /// The type of object returned, must be `list`.
31 #[serde(rename = "object")]
32 pub object: String,
33}