pub struct WebhooksResource { /* private fields */ }Expand description
Webhooks 资源。
Implementations§
Source§impl WebhooksResource
impl WebhooksResource
Sourcepub fn verify_signature<H>(
&self,
payload: &str,
headers: &H,
secret: Option<&str>,
tolerance: Duration,
) -> Result<()>where
H: HeaderLookup,
pub fn verify_signature<H>(
&self,
payload: &str,
headers: &H,
secret: Option<&str>,
tolerance: Duration,
) -> Result<()>where
H: HeaderLookup,
Trait Implementations§
Source§impl Clone for WebhooksResource
impl Clone for WebhooksResource
Source§fn clone(&self) -> WebhooksResource
fn clone(&self) -> WebhooksResource
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 WebhooksResource
impl !RefUnwindSafe for WebhooksResource
impl Send for WebhooksResource
impl Sync for WebhooksResource
impl Unpin for WebhooksResource
impl UnsafeUnpin for WebhooksResource
impl !UnwindSafe for WebhooksResource
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