openai_struct/models/
images_response.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 ImagesResponse : The response from the image generation endpoint.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct ImagesResponse {
18    /// The Unix timestamp (in seconds) of when the image was created.
19    #[serde(rename = "created")]
20    pub created: i32,
21    /// The list of generated images.
22    #[serde(rename = "data")]
23    pub data: Option<Vec<crate::models::Image>>,
24    #[serde(rename = "usage")]
25    pub usage: Option<crate::models::ImagesResponseUsage>,
26}