pub struct Webhook;Implementations§
Source§impl Webhook
impl Webhook
pub fn verify_signature( payload: &str, header: Option<&str>, secret: &str, ) -> Result<bool, &'static str>
pub fn verify_signature_with_tolerance( payload: &str, header: Option<&str>, secret: &str, tolerance: u64, ) -> Result<bool, &'static str>
pub fn parse(payload: &str) -> Result<WebhookEvent, Error>
Auto Trait Implementations§
impl Freeze for Webhook
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnsafeUnpin for Webhook
impl UnwindSafe for Webhook
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