pub struct WebhookHandlerConfigBuilder {
pub config: WebhookHandlerConfig,
}Fields§
§config: WebhookHandlerConfigImplementations§
Source§impl WebhookHandlerConfigBuilder
impl WebhookHandlerConfigBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new webhook handler config 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(self) -> WebhookHandlerConfig
pub fn build(self) -> WebhookHandlerConfig
Builds the webhook handler config
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WebhookHandlerConfigBuilder
impl RefUnwindSafe for WebhookHandlerConfigBuilder
impl Send for WebhookHandlerConfigBuilder
impl Sync for WebhookHandlerConfigBuilder
impl Unpin for WebhookHandlerConfigBuilder
impl UnwindSafe for WebhookHandlerConfigBuilder
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