pub enum ErrorBehavior {
AcceptAndLog,
AcceptAndSkip,
Reject,
}Expand description
Error handling behavior for webhook requests
Variants§
AcceptAndLog
Accept the request and log the issue (returns 200)
AcceptAndSkip
Accept the request but silently discard (returns 200)
Reject
Reject the request with an appropriate HTTP error
Trait Implementations§
Source§impl Clone for ErrorBehavior
impl Clone for ErrorBehavior
Source§fn clone(&self) -> ErrorBehavior
fn clone(&self) -> ErrorBehavior
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 ErrorBehavior
impl Debug for ErrorBehavior
Source§impl Default for ErrorBehavior
impl Default for ErrorBehavior
Source§fn default() -> ErrorBehavior
fn default() -> ErrorBehavior
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ErrorBehavior
impl<'de> Deserialize<'de> for ErrorBehavior
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 ErrorBehavior
impl PartialEq for ErrorBehavior
Source§impl Serialize for ErrorBehavior
impl Serialize for ErrorBehavior
impl StructuralPartialEq for ErrorBehavior
Auto Trait Implementations§
impl Freeze for ErrorBehavior
impl RefUnwindSafe for ErrorBehavior
impl Send for ErrorBehavior
impl Sync for ErrorBehavior
impl Unpin for ErrorBehavior
impl UnsafeUnpin for ErrorBehavior
impl UnwindSafe for ErrorBehavior
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