pub struct Keyword<S = Root> { /* private fields */ }Expand description
An exact, aggregatable string field (keyword, enum, uuid).
Implementations§
Source§impl<S> Keyword<S>
impl<S> Keyword<S>
Sourcepub fn eq(&self, value: impl FlussoValue<Keyword> + Serialize) -> Query<S>
pub fn eq(&self, value: impl FlussoValue<Keyword> + Serialize) -> Query<S>
Exact match. Accepts a String/&str, or any #[derive(FlussoValue)]
keyword enum/newtype — matched against its serde string form
(Account::tier().eq(AccountTier::Pro)).
Sourcepub fn in_(
&self,
values: impl IntoIterator<Item = impl FlussoValue<Keyword> + Serialize>,
) -> Query<S>
pub fn in_( &self, values: impl IntoIterator<Item = impl FlussoValue<Keyword> + Serialize>, ) -> Query<S>
Match any of the given values (String/&str or keyword FlussoValue types).
Sourcepub fn wildcard(&self, pattern: impl Into<String>) -> Query<S>
pub fn wildcard(&self, pattern: impl Into<String>) -> Query<S>
Wildcard match — ? matches one character, * matches any run.
Sourcepub fn regexp(&self, pattern: impl Into<String>) -> Query<S>
pub fn regexp(&self, pattern: impl Into<String>) -> Query<S>
Regular-expression match (Lucene regex syntax, anchored to the whole term).
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Keyword<S>
impl<S> RefUnwindSafe for Keyword<S>
impl<S> Send for Keyword<S>
impl<S> Sync for Keyword<S>
impl<S> Unpin for Keyword<S>
impl<S> UnsafeUnpin for Keyword<S>
impl<S> UnwindSafe for Keyword<S>
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