Skip to main content

ApiBatch

Trait ApiBatch 

Source
pub trait ApiBatch
where Self: ApiBase,
{ // Provided methods fn create_batch( &self, request: BatchRequest, ) -> impl Send + Future<Output = Result<BatchObject>> { ... } fn retrieve_batch( &self, id: &str, ) -> impl Send + Future<Output = Result<BatchObject>> { ... } }
Expand description

OpenAI batches API.

Provided Methods§

Source

fn create_batch( &self, request: BatchRequest, ) -> impl Send + Future<Output = Result<BatchObject>>

Create a batch.

Source

fn retrieve_batch( &self, id: &str, ) -> impl Send + Future<Output = Result<BatchObject>>

Retrieve a batch by ID.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> ApiBatch for T
where T: ApiBase,