Skip to main content

AdminQuerySource

Trait AdminQuerySource 

Source
pub trait AdminQuerySource:
    Debug
    + Send
    + Sync {
    // Required method
    fn query<'life0, 'life1, 'async_trait>(
        &'life0 self,
        query: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = AppResult<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

A module’s read-only declarative query source. Query declarations stay in crate::AdminSurface; this seam only returns the JSON value to render.

Required Methods§

Source

fn query<'life0, 'life1, 'async_trait>( &'life0 self, query: &'life1 str, ) -> Pin<Box<dyn Future<Output = AppResult<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Execute a manifest-declared query by name.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§