Skip to main content

SchemaHooksExt

Trait SchemaHooksExt 

Source
pub trait SchemaHooksExt<R, P>
where R: Send + 'static, P: Send + Clone + 'static,
{ // Required method fn schema<F>(&mut self, f: F) -> &mut Self where F: FnOnce(&mut SchemaBuilder<'_, R, P>); }
Expand description

Extension method: hooks.schema(|s| ...)

Required Methods§

Source

fn schema<F>(&mut self, f: F) -> &mut Self
where F: FnOnce(&mut SchemaBuilder<'_, R, P>),

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<R, P> SchemaHooksExt<R, P> for ServiceHooks<R, P>
where R: Send + 'static, P: Send + Clone + 'static,