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§
type Response: for<'de> Deserialize<'de>
Required Methods§
fn path_with_leading_slash() -> String
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.