pub struct ScopedQuery<'a> {
pub table: &'a str,
pub columns: &'a [&'a str],
pub filter: ScopedFilter<'a>,
pub order_by: &'a [(&'a str, &'a str)],
pub limit: Option<usize>,
pub offset: Option<usize>,
}Expand description
A query being built within an arena scope.
Fields§
§table: &'a strTable name.
columns: &'a [&'a str]Columns to select.
filter: ScopedFilter<'a>Filter.
order_by: &'a [(&'a str, &'a str)]Order by clauses.
limit: Option<usize>Limit.
offset: Option<usize>Offset.
Implementations§
Source§impl<'a> ScopedQuery<'a>
impl<'a> ScopedQuery<'a>
Sourcepub fn filter(self, filter: ScopedFilter<'a>) -> Self
pub fn filter(self, filter: ScopedFilter<'a>) -> Self
Set filter.
Trait Implementations§
Source§impl<'a> Clone for ScopedQuery<'a>
impl<'a> Clone for ScopedQuery<'a>
Source§fn clone(&self) -> ScopedQuery<'a>
fn clone(&self) -> ScopedQuery<'a>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'a> Freeze for ScopedQuery<'a>
impl<'a> RefUnwindSafe for ScopedQuery<'a>
impl<'a> Send for ScopedQuery<'a>
impl<'a> Sync for ScopedQuery<'a>
impl<'a> Unpin for ScopedQuery<'a>
impl<'a> UnwindSafe for ScopedQuery<'a>
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