pub trait ApiFilewhere
Self: ApiBase,{
// Provided methods
fn upload_file(
&self,
name: &str,
content: Vec<u8>,
purpose: Purpose,
) -> impl Send + Future<Output = Result<FileObject>> { ... }
fn retrieve_file_content(
&self,
file_id: &str,
) -> impl Send + Future<Output = Result<String>> { ... }
}Expand description
OpenAI files API.
Provided Methods§
Sourcefn upload_file(
&self,
name: &str,
content: Vec<u8>,
purpose: Purpose,
) -> impl Send + Future<Output = Result<FileObject>>
fn upload_file( &self, name: &str, content: Vec<u8>, purpose: Purpose, ) -> impl Send + Future<Output = Result<FileObject>>
Upload a file.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".