pub struct HttpMultiIndex<T: AsyncHttpRangeClient + Send + Sync> { /* private fields */ }Expand description
Container for multiple HTTP indices keyed by field name
Implementations§
Source§impl<T: AsyncHttpRangeClient + Send + Sync> HttpMultiIndex<T>
impl<T: AsyncHttpRangeClient + Send + Sync> HttpMultiIndex<T>
Sourcepub fn add_index<K: Key + 'static>(
&mut self,
field: String,
index: HttpIndex<K>,
)where
HttpIndex<K>: TypedHttpSearchIndex<T> + 'static,
pub fn add_index<K: Key + 'static>(
&mut self,
field: String,
index: HttpIndex<K>,
)where
HttpIndex<K>: TypedHttpSearchIndex<T> + 'static,
Add an index for any supported key type
Sourcepub async fn query(
&self,
client: &mut AsyncBufferedHttpRangeClient<T>,
conditions: &[QueryCondition],
) -> Result<Vec<HttpSearchResultItem>>
pub async fn query( &self, client: &mut AsyncBufferedHttpRangeClient<T>, conditions: &[QueryCondition], ) -> Result<Vec<HttpSearchResultItem>>
Execute a multi-condition query by AND-ing all conditions
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for HttpMultiIndex<T>
impl<T> !RefUnwindSafe for HttpMultiIndex<T>
impl<T> Send for HttpMultiIndex<T>
impl<T> Sync for HttpMultiIndex<T>
impl<T> Unpin for HttpMultiIndex<T>
impl<T> UnsafeUnpin for HttpMultiIndex<T>
impl<T> !UnwindSafe for HttpMultiIndex<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more