pub struct WhereClause {
pub groups: Vec<Vec<WhereCondition>>,
}Expand description
A WHERE clause with OR-group semantics.
Groups are OR-joined; conditions within each group are AND-joined.
WHERE a = 1 AND b = 2 OR c = 3 parses as [[a=1, b=2], [c=3]].
Fields§
§groups: Vec<Vec<WhereCondition>>OR-groups: outer = OR, inner = AND.
Implementations§
Source§impl WhereClause
impl WhereClause
Sourcepub fn from_conditions(conditions: Vec<WhereCondition>) -> Self
pub fn from_conditions(conditions: Vec<WhereCondition>) -> Self
Create a WhereClause from a single group of AND-joined conditions.
Sourcepub fn from_groups(groups: Vec<Vec<WhereCondition>>) -> Self
pub fn from_groups(groups: Vec<Vec<WhereCondition>>) -> Self
Create a WhereClause from multiple OR-groups.
Trait Implementations§
Source§impl Clone for WhereClause
impl Clone for WhereClause
Source§fn clone(&self) -> WhereClause
fn clone(&self) -> WhereClause
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WhereClause
impl RefUnwindSafe for WhereClause
impl Send for WhereClause
impl Sync for WhereClause
impl Unpin for WhereClause
impl UnsafeUnpin for WhereClause
impl UnwindSafe for WhereClause
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