Trait postmark::Client

source ·
pub trait Client {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        req: Request<Bytes>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

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

Required Associated Types§

source

type Error: Error + Send + Sync + 'static

The errors which may occur for this client.

Required Methods§

source

fn execute<'life0, 'async_trait>( &'life0 self, req: Request<Bytes> ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, Self::Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Execute the request which was formed by Endpoint

Implementors§