pub struct ListQuery {
pub page: i64,
pub per_page: i64,
pub search: Option<String>,
pub sort: Option<(String, Direction)>,
pub filter: ListFilter,
}Expand description
What the list view asks a resource for. Only search, sort and the tab whose filter
applies come from the user, through the query string.
Fields§
§page: i64The page to return, 1-based.
per_page: i64The number of rows on a page.
search: Option<String>The search text, if the user entered any.
sort: Option<(String, Direction)>The column key to sort by and the direction, if the user chose one. The key is one of the resource’s sortable columns.
filter: ListFilterThe conditions of the active Tab, as Filament’s modifyQueryUsing():
the rows and the total must meet them, beside the search. Empty when the resource has
no tabs, or the tab has no conditions. #[derive(IgniteResource)] applies it; a
hand-written list applies it with ListFilter::apply or ListFilter::matches.
To count each tab’s rows, the panel asks for page 1 with per_page 0: only the total
is read.
Implementations§
Trait Implementations§
impl Eq for ListQuery
impl StructuralPartialEq for ListQuery
Auto Trait Implementations§
impl Forget for ListQuery
impl Freeze for ListQuery
impl Move for ListQuery
impl RefUnwindSafe for ListQuery
impl Send for ListQuery
impl Sync for ListQuery
impl Unpin for ListQuery
impl UnsafeUnpin for ListQuerywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<FilterCondition>: UnsafeUnpin,
impl UnwindSafe for ListQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more