pub struct FileListResponse {
pub data: Vec<FileInfo>,
pub object: String,
}
Expand description
Gets list of available files. More details at https://platform.openai.com/docs/api-reference/files/list
§Usage example
use openai_req::files::FileListResponse;
use openai_req::GetRequest;
let files = FileListResponse::get(&client).await?;
Fields§
§data: Vec<FileInfo>
§object: String
Trait Implementations§
Source§impl Clone for FileListResponse
impl Clone for FileListResponse
Source§fn clone(&self) -> FileListResponse
fn clone(&self) -> FileListResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FileListResponse
impl Debug for FileListResponse
Source§impl<'de> Deserialize<'de> for FileListResponse
impl<'de> Deserialize<'de> for FileListResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl GetRequest for FileListResponse
impl GetRequest for FileListResponse
Auto Trait Implementations§
impl Freeze for FileListResponse
impl RefUnwindSafe for FileListResponse
impl Send for FileListResponse
impl Sync for FileListResponse
impl Unpin for FileListResponse
impl UnwindSafe for FileListResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more