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.