pub trait GetRequest: DeserializeOwned {
    const ENDPOINT: &'static str;

    // Provided method
    fn get<'life0, 'async_trait>(
        client: &'life0 OpenAiClient
    ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait { ... }
}

Required Associated Constants§

source

const ENDPOINT: &'static str

Provided Methods§

source

fn get<'life0, 'async_trait>( client: &'life0 OpenAiClient ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where Self: Send + 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl GetRequest for FileListResponse

source§

const ENDPOINT: &'static str = "/files"

source§

impl GetRequest for FineTuneListResponse

source§

const ENDPOINT: &'static str = "/fine-tunes"

source§

impl GetRequest for ModelListResponse

source§

const ENDPOINT: &'static str = "/models"