pub struct Asked<'a> {
pub table: &'a str,
pub after: Option<&'a Value>,
pub filters: &'a [Filter],
pub sort: Option<Sort<'a>>,
}Expand description
What a caller asked a page for.
A struct because the four of them are one thing — which rows, in what
order, from where — and because page had grown to eight positional
arguments, three of them optional and adjacent. A call site that
swapped two would have compiled.
Fields§
§table: &'a strThe declared table.
after: Option<&'a Value>The cursor from a previous page.
filters: &'a [Filter]What to narrow by.
sort: Option<Sort<'a>>What to order by.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Asked<'a>
impl<'a> RefUnwindSafe for Asked<'a>
impl<'a> Send for Asked<'a>
impl<'a> Sync for Asked<'a>
impl<'a> Unpin for Asked<'a>
impl<'a> UnsafeUnpin for Asked<'a>
impl<'a> UnwindSafe for Asked<'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