pub trait CallResponseSpec: Send + Sync {
// Required methods
fn entity<T>(&self) -> T
where T: DeserializeOwned;
fn chat_response(&self) -> ChatResponse;
fn content(&self) -> Bytes;
fn response_entity<T>(&self) -> T
where T: DeserializeOwned;
}Required Methods§
fn entity<T>(&self) -> Twhere
T: DeserializeOwned,
fn chat_response(&self) -> ChatResponse
fn content(&self) -> Bytes
fn response_entity<T>(&self) -> Twhere
T: DeserializeOwned,
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.