Trait TransformQuery

Source
pub trait TransformQuery:
    Send
    + Sync
    + DynClone {
    // Required method
    fn transform_query<'life0, 'async_trait>(
        &'life0 self,
        query: Query<Pending>,
    ) -> Pin<Box<dyn Future<Output = Result<Query<Pending>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn name(&self) -> &'static str { ... }
}
Expand description

Can transform queries before retrieval

Required Methods§

Source

fn transform_query<'life0, 'async_trait>( &'life0 self, query: Query<Pending>, ) -> Pin<Box<dyn Future<Output = Result<Query<Pending>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn name(&self) -> &'static str

Trait Implementations§

Source§

impl TransformQuery for Box<dyn TransformQuery>

Source§

fn transform_query<'life0, 'async_trait>( &'life0 self, query: Query<Pending>, ) -> Pin<Box<dyn Future<Output = Result<Query<Pending>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn name(&self) -> &'static str

Implementations on Foreign Types§

Source§

impl TransformQuery for Box<dyn TransformQuery>

Source§

fn transform_query<'life0, 'async_trait>( &'life0 self, query: Query<Pending>, ) -> Pin<Box<dyn Future<Output = Result<Query<Pending>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn name(&self) -> &'static str

Implementors§