pub struct Webhooks;Available on crate feature
webhook only.Implementations§
Source§impl Webhooks
impl Webhooks
pub fn build_event( body: &str, signature: &str, timestamp: &str, webhook_id: &str, secret: &str, ) -> Result<WebhookEvent, WebhookError>
pub fn verify_signature( body: &str, signature: &str, timestamp: &str, webhook_id: &str, secret: &str, ) -> Result<(), WebhookError>
Auto Trait Implementations§
impl Freeze for Webhooks
impl RefUnwindSafe for Webhooks
impl Send for Webhooks
impl Sync for Webhooks
impl Unpin for Webhooks
impl UnwindSafe for Webhooks
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