CallResponseSpec

Trait CallResponseSpec 

Source
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§

Source

fn entity<T>(&self) -> T

Source

fn chat_response(&self) -> ChatResponse

Source

fn content(&self) -> Bytes

Source

fn response_entity<T>(&self) -> T

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§