pub struct WebhookProcessor { /* private fields */ }
Expand description
Framework-agnostic webhook processor that handles the core SMS logic
Implementations§
Source§impl WebhookProcessor
impl WebhookProcessor
pub fn new(registry: InboundRegistry) -> Self
Sourcepub fn process_webhook(
&self,
provider: &str,
headers: Headers,
body: &[u8],
) -> WebhookResponse
pub fn process_webhook( &self, provider: &str, headers: Headers, body: &[u8], ) -> WebhookResponse
Process an incoming webhook request and return a framework-agnostic response
Trait Implementations§
Source§impl Clone for WebhookProcessor
impl Clone for WebhookProcessor
Source§fn clone(&self) -> WebhookProcessor
fn clone(&self) -> WebhookProcessor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for WebhookProcessor
impl !RefUnwindSafe for WebhookProcessor
impl Send for WebhookProcessor
impl Sync for WebhookProcessor
impl Unpin for WebhookProcessor
impl !UnwindSafe for WebhookProcessor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more