Trait postmark::Endpoint[][src]

pub trait Endpoint {
    type Request: Serialize + Send + Sync;
    type Response: DeserializeOwned + Send + Sync;
    fn endpoint(&self) -> Cow<'static, str>;
fn body(&self) -> &Self::Request; fn method(&self) -> Method { ... } }
Expand description

A trait for providing the necessary information for a single REST API endpoint.

Associated Types

Required methods

The path to the endpoint.

The body for the endpoint.

Provided methods

The http method for the endpoint

Implementors