pub struct OpenAIClientHandle { /* private fields */ }
Implementations§
Source§impl OpenAIClientHandle
impl OpenAIClientHandle
pub fn new() -> Arc<Self>
pub async fn retrieve_batch( &self, batch_id: &str, ) -> Result<Batch, OpenAIClientError>
pub async fn file_content( &self, file_id: &str, ) -> Result<Bytes, OpenAIClientError>
pub async fn upload_batch_file( &self, file_path: impl AsRef<Path>, ) -> Result<OpenAIFile, OpenAIClientError>
pub async fn create_batch( &self, input_file_id: &str, ) -> Result<Batch, OpenAIClientError>
pub async fn wait_for_batch_completion( &self, batch_id: &str, ) -> Result<Batch, OpenAIClientError>
Auto Trait Implementations§
impl Freeze for OpenAIClientHandle
impl !RefUnwindSafe for OpenAIClientHandle
impl Send for OpenAIClientHandle
impl Sync for OpenAIClientHandle
impl Unpin for OpenAIClientHandle
impl !UnwindSafe for OpenAIClientHandle
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