pub enum Query<'a> {
Search(StoreItem<'a>, QuerySearchID<'a>, TokenLexer<'a>, QuerySearchLimit, QuerySearchOffset),
Suggest(StoreItem<'a>, QuerySearchID<'a>, TokenLexer<'a>, QuerySearchLimit),
List(StoreItem<'a>, QuerySearchID<'a>, QuerySearchLimit, QuerySearchOffset),
Push(StoreItem<'a>, TokenLexer<'a>),
Pop(StoreItem<'a>, TokenLexer<'a>),
Count(StoreItem<'a>),
FlushC(StoreItem<'a>),
FlushB(StoreItem<'a>),
FlushO(StoreItem<'a>),
}Variants§
Search(StoreItem<'a>, QuerySearchID<'a>, TokenLexer<'a>, QuerySearchLimit, QuerySearchOffset)
Suggest(StoreItem<'a>, QuerySearchID<'a>, TokenLexer<'a>, QuerySearchLimit)
List(StoreItem<'a>, QuerySearchID<'a>, QuerySearchLimit, QuerySearchOffset)
Push(StoreItem<'a>, TokenLexer<'a>)
Pop(StoreItem<'a>, TokenLexer<'a>)
Count(StoreItem<'a>)
FlushC(StoreItem<'a>)
FlushB(StoreItem<'a>)
FlushO(StoreItem<'a>)
Implementations§
Source§impl<'a> Query<'a>
impl<'a> Query<'a>
pub fn search( query_id: &'a str, collection: &'a str, bucket: &'a str, terms: &'a str, limit: QuerySearchLimit, offset: QuerySearchOffset, lang: Option<QueryGenericLang>, normalization_config: ConfigNormalization, ) -> Result<Self, ()>
pub fn suggest( query_id: &'a str, collection: &'a str, bucket: &'a str, terms: &'a str, limit: QuerySearchLimit, normalization_config: ConfigNormalization, ) -> Result<Self, ()>
pub fn list( query_id: &'a str, collection: &'a str, bucket: &'a str, limit: QuerySearchLimit, offset: QuerySearchOffset, ) -> Result<Self, ()>
pub fn push( collection: &'a str, bucket: &'a str, object: &'a str, text: &'a str, lang: Option<QueryGenericLang>, normalization_config: ConfigNormalization, ) -> Result<Self, ()>
pub fn pop( collection: &'a str, bucket: &'a str, object: &'a str, text: &'a str, normalization_config: ConfigNormalization, ) -> Result<Self, ()>
pub fn count( collection: &'a str, bucket: Option<&'a str>, object: Option<&'a str>, ) -> Result<Self, ()>
pub fn flushc(collection: &'a str) -> Result<Self, ()>
pub fn flushb(collection: &'a str, bucket: &'a str) -> Result<Self, ()>
pub fn flusho( collection: &'a str, bucket: &'a str, object: &'a str, ) -> Result<Self, ()>
Auto Trait Implementations§
impl<'a> Freeze for Query<'a>
impl<'a> RefUnwindSafe for Query<'a>
impl<'a> Send for Query<'a>
impl<'a> Sync for Query<'a>
impl<'a> Unpin for Query<'a>
impl<'a> UnsafeUnpin for Query<'a>
impl<'a> UnwindSafe for Query<'a>
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