openai/model/create_edit_response.rs
1
2use serde::{Serialize, Deserialize};
3#[derive(Debug, Clone, Serialize, Deserialize)]
4pub struct CreateEditResponse {
5 pub choices: Vec<serde_json::Value>,
6 pub created: i64,
7 pub object: String,
8 pub usage: serde_json::Value,
9}
10impl std::fmt::Display for CreateEditResponse {
11 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
12 write!(f, "{}", serde_json::to_string(self).unwrap())
13 }
14}