Trait WebhookHandler

Source
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.

Required Methods§

Source

fn call(self, req: Req) -> Res

Implementors§

Source§

impl<F> WebhookHandler<ConversionReview, ConversionReview> for F
where F: FnOnce(ConversionReview) -> ConversionReview,