Enum rorm_sql::conditional::UnaryCondition
source · pub enum UnaryCondition<'a> {
IsNull(Box<Condition<'a>>),
IsNotNull(Box<Condition<'a>>),
Exists(Box<Condition<'a>>),
NotExists(Box<Condition<'a>>),
Not(Box<Condition<'a>>),
}
Expand description
This enum represents all available unary conditions.
Variants§
IsNull(Box<Condition<'a>>)
Representation of SQL’s “{} IS NULL”
IsNotNull(Box<Condition<'a>>)
Representation of SQL’s “{} IS NOT NULL”
Exists(Box<Condition<'a>>)
Representation of SQL’s “EXISTS {}”
NotExists(Box<Condition<'a>>)
Representation of SQL’s “NOT EXISTS {}”
Not(Box<Condition<'a>>)
Representation of SQL’s “NOT {}”
Trait Implementations§
source§impl<'a> BuildCondition<'a> for UnaryCondition<'a>
impl<'a> BuildCondition<'a> for UnaryCondition<'a>
source§impl<'a> Debug for UnaryCondition<'a>
impl<'a> Debug for UnaryCondition<'a>
source§impl<'a> PartialEq<UnaryCondition<'a>> for UnaryCondition<'a>
impl<'a> PartialEq<UnaryCondition<'a>> for UnaryCondition<'a>
source§fn eq(&self, other: &UnaryCondition<'a>) -> bool
fn eq(&self, other: &UnaryCondition<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for UnaryCondition<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for UnaryCondition<'a>
impl<'a> Send for UnaryCondition<'a>
impl<'a> Sync for UnaryCondition<'a>
impl<'a> Unpin for UnaryCondition<'a>
impl<'a> UnwindSafe for UnaryCondition<'a>
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