pub struct WebhookConfig { /* private fields */ }Expand description
Top-level configuration for WebhookVerifier and WebhookPlugin.
Implementations§
Source§impl WebhookConfig
Fluent configuration builders for WebhookConfig.
impl WebhookConfig
Fluent configuration builders for WebhookConfig.
Sourcepub fn with_endpoint(self, endpoint: WebhookEndpoint) -> Self
pub fn with_endpoint(self, endpoint: WebhookEndpoint) -> Self
Appends a configured WebhookEndpoint.
§Arguments
WebhookEndpoint- Endpoint verification rules.
§Returns
Self- Updated configuration.
Sourcepub fn with_replay_max_entries(self, max_entries: usize) -> Self
pub fn with_replay_max_entries(self, max_entries: usize) -> Self
Source§impl WebhookConfig
impl WebhookConfig
pub fn get_endpoints(&self) -> &Vec<WebhookEndpoint>
pub fn get_mut_endpoints(&mut self) -> &mut Vec<WebhookEndpoint>
pub fn set_endpoints(&mut self, val: Vec<WebhookEndpoint>) -> &mut Self
pub fn get_replay_max_entries(&self) -> usize
pub fn get_mut_replay_max_entries(&mut self) -> &mut usize
pub fn set_replay_max_entries(&mut self, val: usize) -> &mut Self
Trait Implementations§
Source§impl Clone for WebhookConfig
impl Clone for WebhookConfig
Source§impl Debug for WebhookConfig
impl Debug for WebhookConfig
Source§impl Default for WebhookConfig
Default construction for WebhookConfig.
impl Default for WebhookConfig
Default construction for WebhookConfig.
Source§fn default() -> Self
fn default() -> Self
Constructs an empty WebhookConfig with 65 536 max replay cache entries.
§Returns
Self- Default configuration.
impl Eq for WebhookConfig
Source§impl PartialEq for WebhookConfig
impl PartialEq for WebhookConfig
impl StructuralPartialEq for WebhookConfig
Auto Trait Implementations§
impl Forget for WebhookConfig
impl Freeze for WebhookConfig
impl Move for WebhookConfig
impl RefUnwindSafe for WebhookConfig
impl Send for WebhookConfigwhere
RawVecInner: Send,
impl Sync for WebhookConfigwhere
RawVecInner: Sync,
impl Unpin for WebhookConfig
impl UnsafeUnpin for WebhookConfig
impl UnwindSafe for WebhookConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.