kind_openai::endpoints

Trait OpenAIRequestProvider

Source
pub trait OpenAIRequestProvider: Serialize + Sealed {
    type Response: for<'de> Deserialize<'de>;

    const METHOD: Method;

    // Required method
    fn path_with_leading_slash() -> String;
}
Expand description

Any type that can be sent to the client’s req method.

Required Associated Constants§

Required Associated Types§

Source

type Response: for<'de> Deserialize<'de>

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§