Struct mydb_sqlx::conditions::query::QueryWrapper
source · pub struct QueryWrapper { /* private fields */ }
Implementations§
source§impl QueryWrapper
impl QueryWrapper
pub fn new() -> Self
sourcepub fn like<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
pub fn like<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
@description: 模糊查询
pub fn left_like<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
pub fn right_like<T>(
&mut self,
key: &'static str,
value: Option<T>,
) -> &mut Selfwhere
T: Display,
sourcepub fn eq<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
pub fn eq<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
@description: 相等
sourcepub fn ne<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
pub fn ne<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
@description: 不相等
sourcepub fn gt<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
pub fn gt<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
@description: 大于
sourcepub fn lt<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
pub fn lt<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
@description: 小于
sourcepub fn ge<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
pub fn ge<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
@description: 大于等于
sourcepub fn le<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
pub fn le<T>(&mut self, key: &'static str, value: Option<T>) -> &mut Selfwhere
T: Display,
@description: 小于等于
Trait Implementations§
source§impl Clone for QueryWrapper
impl Clone for QueryWrapper
source§fn clone(&self) -> QueryWrapper
fn clone(&self) -> QueryWrapper
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QueryWrapper
impl Debug for QueryWrapper
source§impl Default for QueryWrapper
impl Default for QueryWrapper
source§fn default() -> QueryWrapper
fn default() -> QueryWrapper
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueryWrapper
impl RefUnwindSafe for QueryWrapper
impl Send for QueryWrapper
impl Sync for QueryWrapper
impl Unpin for QueryWrapper
impl UnwindSafe for QueryWrapper
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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