pub enum WebhookType {
Blocking,
Notify,
CacheKey,
}Expand description
The type of a webhook — controls whether the webhook gates access or just receives a notification.
Variants§
Blocking
The webhook call must complete with a 2xx response before the request is forwarded.
A non-2xx response (or a timeout / network error) causes the request to be denied.
A 3xx response is forwarded to the client as a redirect with the Location header intact.
Notify
The webhook call is dispatched in the background without blocking the request.
CacheKey
The webhook response body (plain text) is used as the cache key for this request. On failure, a non-2xx response, or an empty body, the default cache key is used instead. Works in both Dynamic and PreGenerate modes.
Trait Implementations§
Source§impl Clone for WebhookType
impl Clone for WebhookType
Source§fn clone(&self) -> WebhookType
fn clone(&self) -> WebhookType
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 moreSource§impl Debug for WebhookType
impl Debug for WebhookType
Source§impl Default for WebhookType
impl Default for WebhookType
Source§fn default() -> WebhookType
fn default() -> WebhookType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookType
impl<'de> Deserialize<'de> for WebhookType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WebhookType
impl PartialEq for WebhookType
Source§impl Serialize for WebhookType
impl Serialize for WebhookType
impl Eq for WebhookType
impl StructuralPartialEq for WebhookType
Auto Trait Implementations§
impl Freeze for WebhookType
impl RefUnwindSafe for WebhookType
impl Send for WebhookType
impl Sync for WebhookType
impl Unpin for WebhookType
impl UnsafeUnpin for WebhookType
impl UnwindSafe for WebhookType
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
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§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.