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