#[non_exhaustive]pub struct WebhookVerifyOptions {
pub tolerance: Duration,
pub now: Option<SystemTime>,
}Expand description
Options of the webhook functions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tolerance: DurationAllowed clock difference, in both directions. Default DEFAULT_TOLERANCE.
now: Option<SystemTime>The time to verify against; None uses the system clock.
Implementations§
Trait Implementations§
Source§impl Clone for WebhookVerifyOptions
impl Clone for WebhookVerifyOptions
Source§impl Debug for WebhookVerifyOptions
impl Debug for WebhookVerifyOptions
Source§impl Default for WebhookVerifyOptions
impl Default for WebhookVerifyOptions
impl Eq for WebhookVerifyOptions
Source§impl PartialEq for WebhookVerifyOptions
impl PartialEq for WebhookVerifyOptions
impl StructuralPartialEq for WebhookVerifyOptions
Auto Trait Implementations§
impl Forget for WebhookVerifyOptions
impl Freeze for WebhookVerifyOptions
impl Move for WebhookVerifyOptions
impl RefUnwindSafe for WebhookVerifyOptions
impl Send for WebhookVerifyOptions
impl Sync for WebhookVerifyOptions
impl Unpin for WebhookVerifyOptions
impl UnsafeUnpin for WebhookVerifyOptions
impl UnwindSafe for WebhookVerifyOptions
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