pub struct WhereClause {
pub conditions: Vec<Condition>,
}Expand description
WHERE clause with conditions
Fields§
§conditions: Vec<Condition>List of conditions (implicitly AND-ed)
Implementations§
Source§impl WhereClause
impl WhereClause
Sourcepub fn get_condition(&self, attr_name: &str) -> Option<&Condition>
pub fn get_condition(&self, attr_name: &str) -> Option<&Condition>
Get condition for a specific attribute
Sourcepub fn has_condition(&self, attr_name: &str) -> bool
pub fn has_condition(&self, attr_name: &str) -> bool
Check if clause contains a condition for given attribute
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WhereClause
impl Debug for WhereClause
Source§impl PartialEq for WhereClause
impl PartialEq for WhereClause
impl StructuralPartialEq for WhereClause
Auto Trait Implementations§
impl Freeze for WhereClause
impl RefUnwindSafe for WhereClause
impl Send for WhereClause
impl Sync for WhereClause
impl Unpin 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