openai_interface/files/list/response.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Deserialize, Serialize, Clone)]
4pub struct ListFilesResponse {
5 pub data: Vec<crate::files::FileObject>,
6 pub has_more: bool,
7 pub object: Option<String>,
8 /// The ID of the first object in the list, used for cursor pagination.
9 /// Returned by newer OpenAI-compatible list endpoints.
10 pub first_item: Option<String>,
11 /// The ID of the last object in the list, used for cursor pagination.
12 /// Returned by newer OpenAI-compatible list endpoints.
13 pub last_item: Option<String>,
14}
15
16crate::impl_from_str!(ListFilesResponse);