1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
pub struct ImageResponse {
    pub created: i64,
    pub data: Vec<ImageData>,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct ImageData {
    pub revised_prompt: String,
    pub url: String,
}