pub struct Query { /* private fields */ }Implementations§
Source§impl Query
impl Query
pub fn new() -> Self
pub fn eq(self, col: &str, val: impl Into<Value>) -> Self
pub fn ne(self, col: &str, val: impl Into<Value>) -> Self
pub fn gt(self, col: &str, val: impl Into<Value>) -> Self
pub fn gte(self, col: &str, val: impl Into<Value>) -> Self
pub fn lt(self, col: &str, val: impl Into<Value>) -> Self
pub fn lte(self, col: &str, val: impl Into<Value>) -> Self
pub fn is_null(self, col: &str) -> Self
pub fn is_not_null(self, col: &str) -> Self
pub fn filter_optional(self, col: &str, val: Option<impl Into<Value>>) -> Self
pub fn filter_optional_gte( self, col: &str, val: Option<impl Into<Value>>, ) -> Self
pub fn filter_optional_lte( self, col: &str, val: Option<impl Into<Value>>, ) -> Self
pub fn in_<T: Into<Value>>(self, col: &str, vals: Vec<T>) -> Self
pub fn not_in<T: Into<Value>>(self, col: &str, vals: Vec<T>) -> Self
pub fn like(self, col: &str, pat: impl Into<Value>) -> Self
pub fn not_like(self, col: &str, pat: impl Into<Value>) -> Self
pub fn between( self, col: &str, lo: impl Into<Value>, hi: impl Into<Value>, ) -> Self
pub fn or(self, f: impl FnOnce(Query) -> Query) -> Self
pub fn and(self, f: impl FnOnce(Query) -> Query) -> Self
pub fn order_by(self, col: &str, dir: Order) -> Self
pub fn limit(self, n: u64) -> Self
pub fn offset(self, n: u64) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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