pub struct Filter {
pub left: String,
pub operation: FilterOperator,
pub values: Vec<Value>,
}Expand description
One scanner filter clause (left / operation / right).
Fields§
§left: StringColumn key on the left side of the comparison.
operation: FilterOperatorOperator applied to left vs values.
values: Vec<Value>Right-hand side value(s); field-to-field compares use column name strings.
Implementations§
Source§impl Filter
impl Filter
Sourcepub fn new(
left: impl Into<String>,
operation: FilterOperator,
values: impl IntoIterator<Item = Value>,
) -> Self
pub fn new( left: impl Into<String>, operation: FilterOperator, values: impl IntoIterator<Item = Value>, ) -> Self
Builds a filter from one or many right-hand values.
Sourcepub fn on_extra(
extra: ExtraFilter,
operation: FilterOperator,
values: impl IntoIterator<Item = Value>,
) -> Self
pub fn on_extra( extra: ExtraFilter, operation: FilterOperator, values: impl IntoIterator<Item = Value>, ) -> Self
Builds a filter on an ExtraFilter left key.
Trait Implementations§
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 more