ConjureClient#

pub struct ConjureClient#

A Conjure client that adds the AI_AGENT_HEADER header to every request.

Implementations#

impl ConjureClient
pub fn new(inner: Client) -> Self#

Trait implementations#

impl AsyncClient for ConjureClient
type BodyWriter = BodyWriter
type ResponseBody = ResponseBody
fn send(&self, request: Request<AsyncRequestBody<'_, Self::BodyWriter>>) -> impl Future<Output = Result<Response<Self::ResponseBody>, Error>> + Send

Derived: Clone

Auto traits: Send, Sync, Unpin, !UnwindSafe, !RefUnwindSafe