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 ==
.