pub struct WhereClause<B> { /* private fields */ }Expand description
Fluent where clause for filter conditions
Implementations§
Source§impl<B: FilterAcceptor> WhereClause<B>
impl<B: FilterAcceptor> WhereClause<B>
Sourcepub fn equals<V: Into<FilterValue>>(self, value: V) -> B
pub fn equals<V: Into<FilterValue>>(self, value: V) -> B
Equal to value
Sourcepub fn eq<V: Into<FilterValue>>(self, value: V) -> B
pub fn eq<V: Into<FilterValue>>(self, value: V) -> B
Shorthand for equals
Sourcepub fn not_equals<V: Into<FilterValue>>(self, value: V) -> B
pub fn not_equals<V: Into<FilterValue>>(self, value: V) -> B
Not equal to value
Sourcepub fn greater_than<V: Into<FilterValue>>(self, value: V) -> B
pub fn greater_than<V: Into<FilterValue>>(self, value: V) -> B
Greater than value
Sourcepub fn gt<V: Into<FilterValue>>(self, value: V) -> B
pub fn gt<V: Into<FilterValue>>(self, value: V) -> B
Shorthand for greater_than
Sourcepub fn gte<V: Into<FilterValue>>(self, value: V) -> B
pub fn gte<V: Into<FilterValue>>(self, value: V) -> B
Greater than or equal
Sourcepub fn less_than<V: Into<FilterValue>>(self, value: V) -> B
pub fn less_than<V: Into<FilterValue>>(self, value: V) -> B
Less than value
Sourcepub fn lt<V: Into<FilterValue>>(self, value: V) -> B
pub fn lt<V: Into<FilterValue>>(self, value: V) -> B
Shorthand for less_than
Sourcepub fn lte<V: Into<FilterValue>>(self, value: V) -> B
pub fn lte<V: Into<FilterValue>>(self, value: V) -> B
Less than or equal
Sourcepub fn starts_with(self, prefix: impl Into<String>) -> B
pub fn starts_with(self, prefix: impl Into<String>) -> B
Starts with prefix
Sourcepub fn in_list(self, values: Vec<FilterValue>) -> B
pub fn in_list(self, values: Vec<FilterValue>) -> B
Value is in list
Sourcepub fn between<V: Into<FilterValue>>(self, low: V, high: V) -> B
pub fn between<V: Into<FilterValue>>(self, low: V, high: V) -> B
Between two values (inclusive)
Sourcepub fn is_not_null(self) -> B
pub fn is_not_null(self) -> B
Is not null
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for WhereClause<B>where
B: Freeze,
impl<B> RefUnwindSafe for WhereClause<B>where
B: RefUnwindSafe,
impl<B> Send for WhereClause<B>where
B: Send,
impl<B> Sync for WhereClause<B>where
B: Sync,
impl<B> Unpin for WhereClause<B>where
B: Unpin,
impl<B> UnsafeUnpin for WhereClause<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for WhereClause<B>where
B: UnwindSafe,
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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request