#[derive(Interceptor)]
Derive macro for creating interceptors.
Generates implementations for the Interceptor trait.
Interceptor
use sword::prelude::*; #[derive(Interceptor)] struct MyInterceptor; // then implement some Interceptor trait variants // depending on the adapter type (e. g. OnRequest, OnConnect.)