pub struct QueryGroup<F: ScreenerField> {
pub operator: LogicalOperator,
pub operands: Vec<QueryOperand<F>>,
}Expand description
A group of query operands combined with a logical operator.
Groups can be nested to form complex AND/OR trees.
Fields§
§operator: LogicalOperatorThe logical operator combining all operands in this group.
operands: Vec<QueryOperand<F>>The operands — each is either a QueryCondition or a nested QueryGroup.
Implementations§
Source§impl<F: ScreenerField> QueryGroup<F>
impl<F: ScreenerField> QueryGroup<F>
Sourcepub fn new(operator: LogicalOperator) -> Self
pub fn new(operator: LogicalOperator) -> Self
Create a new empty group with the given logical operator.
Sourcepub fn add_operand(&mut self, operand: QueryOperand<F>)
pub fn add_operand(&mut self, operand: QueryOperand<F>)
Add an operand to this group.
Trait Implementations§
Source§impl<F: Clone + ScreenerField> Clone for QueryGroup<F>
impl<F: Clone + ScreenerField> Clone for QueryGroup<F>
Source§fn clone(&self) -> QueryGroup<F>
fn clone(&self) -> QueryGroup<F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: Debug + ScreenerField> Debug for QueryGroup<F>
impl<F: Debug + ScreenerField> Debug for QueryGroup<F>
Source§impl<F> Serialize for QueryGroup<F>where
F: Serialize + ScreenerField,
impl<F> Serialize for QueryGroup<F>where
F: Serialize + ScreenerField,
Auto Trait Implementations§
impl<F> Freeze for QueryGroup<F>
impl<F> RefUnwindSafe for QueryGroup<F>where
F: RefUnwindSafe,
impl<F> Send for QueryGroup<F>where
F: Send,
impl<F> Sync for QueryGroup<F>where
F: Sync,
impl<F> Unpin for QueryGroup<F>where
F: Unpin,
impl<F> UnsafeUnpin for QueryGroup<F>
impl<F> UnwindSafe for QueryGroup<F>where
F: 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> 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 more