Skip to main content

OverrideHook

Trait OverrideHook 

Source
pub trait OverrideHook: Send + Sync {
    // Required method
    fn apply(&self, request: &OverrideRequest<'_>, body: &mut Value);
}
Expand description

Hook that applies override rules to a generated response body

Required Methods§

Source

fn apply(&self, request: &OverrideRequest<'_>, body: &mut Value)

Patch body in place with every rule that matches request

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§