pub trait ByUrlRequest<TRes: DeserializeOwned>: WithRefId<str> + Sync {
    const ENDPOINT: &'static str;
    const SUFFIX: &'static str;

    // Provided methods
    fn builder(client: &OpenAiClient, final_url: String) -> RequestBuilder { ... }
    fn run<'life0, 'life1, 'async_trait>(
        &'life0 self,
        client: &'life1 OpenAiClient
    ) -> Pin<Box<dyn Future<Output = Result<TRes>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Associated Constants§

source

const ENDPOINT: &'static str

source

const SUFFIX: &'static str

Provided Methods§

source

fn builder(client: &OpenAiClient, final_url: String) -> RequestBuilder

source

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

Implementors§

source§

impl ByUrlRequest<FileInfo> for FileInfoRequest

source§

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

source§

const SUFFIX: &'static str = ""

source§

impl ByUrlRequest<FineTune> for FineTuneCancelRequest

source§

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

source§

const SUFFIX: &'static str = "/cancel"

source§

impl ByUrlRequest<FineTune> for FineTuneGetRequest

source§

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

source§

const SUFFIX: &'static str = ""

source§

impl ByUrlRequest<FineTuneEventsResponse> for FineTuneEventsGetRequest

source§

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

source§

const SUFFIX: &'static str = "/events"

source§

impl ByUrlRequest<Model> for ModelRequest

source§

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

source§

const SUFFIX: &'static str = ""

source§

impl ByUrlRequest<DeleteResponse> for FileDeleteRequest

source§

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

source§

const SUFFIX: &'static str = ""

source§

impl ByUrlRequest<DeleteResponse> for ModelDeleteRequest

source§

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

source§

const SUFFIX: &'static str = ""