pub trait WebhookHandler<Req, Res> {
// Required method
fn call(self, req: Req) -> Res;
}
Expand description
A generic webhook handler receiving a request and sending back a response.
This trait is not intended to be implemented by external crates and this
library provides various ready-to-use implementations for it. One such an
implementation is part of the ConversionWebhookServer
.