pub struct MDQueryCondition { /* private fields */ }Expand description
A structure for building complex, nested query conditions with logical operators.
MDQueryCondition allows for creating sophisticated search expressions by combining
multiple conditions with either logical AND (All) or logical OR (Any) operators.
It can be used to build complex queries that are not easily expressible with the
simple chained methods of MDQueryBuilder.
Implementations§
Source§impl MDQueryCondition
impl MDQueryCondition
Sourcepub fn into_expression(self) -> String
pub fn into_expression(self) -> String
Converts the condition structure into a query expression string.
This method recursively processes the condition structure, combining all expressions according to the condition_type (All = AND, Any = OR) and returning a properly formatted query string that can be used with MDQuery.
§Returns
A string representation of the combined query expression, properly parenthesized.
Sourcepub fn add(&mut self, expr: MDQueryConditionExpression)
pub fn add(&mut self, expr: MDQueryConditionExpression)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MDQueryCondition
impl RefUnwindSafe for MDQueryCondition
impl Send for MDQueryCondition
impl Sync for MDQueryCondition
impl Unpin for MDQueryCondition
impl UnwindSafe for MDQueryCondition
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