Trait postmark::Client[][src]

pub trait Client {
    type Error: Error + Send + Sync + 'static;
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        req: Request<Bytes>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

A trait representing a client which can communicate with a Postmark instance.

Associated Types

The errors which may occur for this client.

Required methods

Execute the request which was formed by Endpoint

Implementors