async_graphql::extensions

Trait ExtensionFactory

Source
pub trait ExtensionFactory:
    Send
    + Sync
    + 'static {
    // Required method
    fn create(&self) -> Arc<dyn Extension>;
}
Expand description

Extension factory

Used to create an extension instance.

Required Methods§

Source

fn create(&self) -> Arc<dyn Extension>

Create an extended instance.

Implementors§