pub struct Text { /* private fields */ }Expand description
Builder for text predicates.
Implementations§
Source§impl Text
impl Text
Sourcepub fn eq(self, value: impl Into<String>) -> FilterExpression
pub fn eq(self, value: impl Into<String>) -> FilterExpression
Matches an exact text term.
Sourcepub fn ne(self, value: impl Into<String>) -> FilterExpression
pub fn ne(self, value: impl Into<String>) -> FilterExpression
Negates an exact text term.
Sourcepub fn like(self, value: impl Into<String>) -> FilterExpression
pub fn like(self, value: impl Into<String>) -> FilterExpression
Matches a wildcard/pattern text term.
Sourcepub fn matches(self, value: impl Into<String>) -> FilterExpression
pub fn matches(self, value: impl Into<String>) -> FilterExpression
Alias for like.
Sourcepub fn is_missing(self) -> FilterExpression
pub fn is_missing(self) -> FilterExpression
Matches documents where this text field is absent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnsafeUnpin for Text
impl UnwindSafe for Text
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.