pub struct WhereCondition {
pub field: String,
pub op: WhereOp,
pub value: Value,
pub extra_values: Vec<Value>,
}Expand description
查询条件
Fields§
§field: String§op: WhereOp§value: Value§extra_values: Vec<Value>For Between / In / NotIn,副值列表
Implementations§
Source§impl WhereCondition
impl WhereCondition
Sourcepub fn new(field: impl Into<String>, op: WhereOp, value: Value) -> Self
pub fn new(field: impl Into<String>, op: WhereOp, value: Value) -> Self
创建单值条件(Eq/Ne/Gt/Ge/Lt/Le/Like)
Sourcepub fn null_check(field: impl Into<String>, op: WhereOp) -> Self
pub fn null_check(field: impl Into<String>, op: WhereOp) -> Self
创建 IsNull / IsNotNull 条件
Trait Implementations§
Source§impl Clone for WhereCondition
impl Clone for WhereCondition
Source§fn clone(&self) -> WhereCondition
fn clone(&self) -> WhereCondition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WhereCondition
impl RefUnwindSafe for WhereCondition
impl Send for WhereCondition
impl Sync for WhereCondition
impl Unpin for WhereCondition
impl UnsafeUnpin for WhereCondition
impl UnwindSafe for WhereCondition
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