pub enum HookResult {
Continue,
Stop,
Response(String),
Error(Error),
Transform(Value),
}Expand description
Result of a hook execution
Variants§
Continue
Continue with normal execution
Stop
Stop execution and return early
Response(String)
Return a modified response - using a placeholder to avoid Debug issue
Error(Error)
Return an error
Transform(Value)
Transform data in the hook chain
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HookResult
impl !RefUnwindSafe for HookResult
impl Send for HookResult
impl Sync for HookResult
impl Unpin for HookResult
impl !UnwindSafe for HookResult
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