Trait TransformResponse

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

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

Can transform a response after retrieval

Required Methods§

Source

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

Provided Methods§

Source

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

Trait Implementations§

Source§

impl TransformResponse for Box<dyn TransformResponse>

Source§

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

Source§

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

Implementations on Foreign Types§

Source§

impl TransformResponse for Box<dyn TransformResponse>

Source§

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

Source§

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

Implementors§