pub enum Condition<M> {
Raw(String, Vec<PgValue>, PhantomData<M>),
And(Vec<Condition<M>>),
Or(Vec<Condition<M>>),
}Expand description
A tree representing a SQL condition (WHERE or HAVING clause) used to filter queries.
Supports generic And and Or nesting and intelligently binds indexed parameters.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for Condition<M>
impl<M> RefUnwindSafe for Condition<M>where
M: RefUnwindSafe,
impl<M> Send for Condition<M>where
M: Send,
impl<M> Sync for Condition<M>where
M: Sync,
impl<M> Unpin for Condition<M>where
M: Unpin,
impl<M> UnsafeUnpin for Condition<M>
impl<M> UnwindSafe for Condition<M>where
M: 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