pub trait WebhookPayloadExtractor:
Send
+ Sync
+ 'static {
// Required method
fn extract(&self, headers: &HeaderMap, body: &[u8]) -> Option<ParsedPush>;
}Expand description
Provider-specific decoder for the verified webhook body. Implementors
receive the raw headers (so they can pick a payload shape per
Content-Type or X-Event-Key) and the byte slice the HMAC already
covered. Returning None signals “this body is not a push we can
route” and the handler responds 200 + triggered=false.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".