Trait swiftide_core::query_traits::Retrieve
source · pub trait Retrieve<S: SearchStrategy + ?Sized>:
Send
+ Sync
+ ToOwned {
// Required method
fn retrieve<'life0, 'life1, 'async_trait>(
&'life0 self,
search_strategy: &'life1 S,
query: Query<Pending>,
) -> Pin<Box<dyn Future<Output = Result<Query<Retrieved>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Can retrieve documents given a SearchStrategy
Required Methods§
fn retrieve<'life0, 'life1, 'async_trait>(
&'life0 self,
search_strategy: &'life1 S,
query: Query<Pending>,
) -> Pin<Box<dyn Future<Output = Result<Query<Retrieved>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Object Safety§
This trait is not object safe.