pub trait RouterExt<S> {
// Required methods
fn with_rate_limit(
self,
rate_config: &RateLimitConfig,
per_second: u64,
) -> Self;
fn with_auth<E>(
self,
auth: ContextMiddleware<E>,
policy: AuthzPolicy,
) -> Self
where E: ContextExtractor + Clone + Send + Sync + 'static;
fn with_jti_check(self, jti_state: JtiRevocationState) -> Self;
}Required Methods§
fn with_rate_limit(self, rate_config: &RateLimitConfig, per_second: u64) -> Self
fn with_auth<E>(self, auth: ContextMiddleware<E>, policy: AuthzPolicy) -> Self
fn with_jti_check(self, jti_state: JtiRevocationState) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".