pub struct Query { /* private fields */ }Expand description
Query builder for fluent API
Implementations§
Source§impl Query
impl Query
Sourcepub fn order_by_asc(self, column: impl Into<String>) -> Self
pub fn order_by_asc(self, column: impl Into<String>) -> Self
Add ORDER BY ascending
Sourcepub fn order_by_desc(self, column: impl Into<String>) -> Self
pub fn order_by_desc(self, column: impl Into<String>) -> Self
Add ORDER BY descending
Sourcepub fn with_total_count(self) -> Self
pub fn with_total_count(self) -> Self
Enable total count
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