pub enum Op {
Show 16 variants
Eq,
Ne,
Like,
Gt,
Lt,
Gte,
Lte,
In,
NotIn,
Between,
FindInSet,
JsonContains,
IsNull,
IsNotNull,
Exists,
NotExists,
}Expand description
支持的 SQL 操作符
Variants§
Eq
等于 (=)
Ne
不等于 (!=)
Like
模糊匹配 (LIKE)
Gt
大于 (>)
Lt
小于 (<)
Gte
大于等于 (>=)
Lte
小于等于 (<=)
In
包含在列表内 (IN)
NotIn
不包含在列表内 (NOT IN)
Between
在范围内 (BETWEEN)
FindInSet
逗号分隔字符串查找 (FIND_IN_SET)
JsonContains
JSON 包含 (JSON_CONTAINS)
IsNull
为空 (IS NULL)
IsNotNull
不为空 (IS NOT NULL)
Exists
存在子查询 (EXISTS)
NotExists
不存在子查询 (NOT EXISTS)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Op
impl<'de> Deserialize<'de> for Op
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more