Skip to main content

SchemaProvider

Trait SchemaProvider 

Source
pub trait SchemaProvider: Send + Sync {
    // Required method
    fn ensure_schema<'a>(
        &'a self,
        ctx: &'a UserContext,
    ) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'a>>;
}

Required Methods§

Source

fn ensure_schema<'a>( &'a self, ctx: &'a UserContext, ) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'a>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§