pub struct WebhookReceiver { /* private fields */ }
Implementations§
Source§impl WebhookReceiver
impl WebhookReceiver
pub fn new(token_verifier: TokenVerifier) -> Self
pub fn receive( &self, body: &str, auth_token: &str, ) -> Result<WebhookEvent, WebhookError>
Trait Implementations§
Source§impl Clone for WebhookReceiver
impl Clone for WebhookReceiver
Source§fn clone(&self) -> WebhookReceiver
fn clone(&self) -> WebhookReceiver
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 WebhookReceiver
impl RefUnwindSafe for WebhookReceiver
impl Send for WebhookReceiver
impl Sync for WebhookReceiver
impl Unpin for WebhookReceiver
impl UnwindSafe for WebhookReceiver
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