pub struct Statement<'a> {
pub filter: Option<Filter<'a>>,
pub sorts: Option<Vec<SortItem>>,
pub limit: Option<usize>,
pub offset: Option<usize>,
pub distinct: bool,
pub recursive_on: Option<&'a str>,
pub from: Option<&'a str>,
pub alias: Option<&'a str>,
}
Fields
filter: Option<Filter<'a>>
sorts: Option<Vec<SortItem>>
limit: Option<usize>
offset: Option<usize>
distinct: bool
recursive_on: Option<&'a str>
from: Option<&'a str>
alias: Option<&'a str>
Implementations
sourceimpl<'a> Statement<'a>
impl<'a> Statement<'a>
pub fn filter(self, f: Filter<'a>) -> Self
pub fn sort(self, field: &str, direction: SortDir) -> Self
pub fn limit(self, v: usize) -> Self
pub fn offset(self, v: usize) -> Self
pub fn distinct(self) -> Self
pub fn recursive_on(self, v: &'a str) -> Self
pub fn from(self, v: &'a str) -> Self
pub fn alias(self, v: &'a str) -> Self
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Statement<'a>
impl<'a> Send for Statement<'a>
impl<'a> Sync for Statement<'a>
impl<'a> Unpin for Statement<'a>
impl<'a> UnwindSafe for Statement<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more