pub struct WebhookHandlerConfigBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> WebhookHandlerConfigBuilder<'a>
impl<'a> WebhookHandlerConfigBuilder<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new webhook handler config builder with default expiration time
§Default Settings
- Expiration time: 10 minutes
Sourcepub fn expiration_time(self, duration: Duration) -> Self
pub fn expiration_time(self, duration: Duration) -> Self
Sets the expiration time for the webhook handler
Sourcepub fn disable_expiration(self) -> Self
pub fn disable_expiration(self) -> Self
Disables the expiration time for the webhook handler
Sourcepub fn build_config(self) -> WebhookHandlerConfig
pub fn build_config(self) -> WebhookHandlerConfig
Builds the webhook handler config (for backward compatibility)
Sourcepub fn build(self) -> WebhookHandler
pub fn build(self) -> WebhookHandler
Builds the webhook handler (requires client reference)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WebhookHandlerConfigBuilder<'a>
impl<'a> RefUnwindSafe for WebhookHandlerConfigBuilder<'a>
impl<'a> Send for WebhookHandlerConfigBuilder<'a>
impl<'a> Sync for WebhookHandlerConfigBuilder<'a>
impl<'a> Unpin for WebhookHandlerConfigBuilder<'a>
impl<'a> UnwindSafe for WebhookHandlerConfigBuilder<'a>
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