pub struct SortFilter {
pub id: Cow<'static, str>,
pub title: Option<Cow<'static, str>>,
pub hide_from_header: Option<bool>,
pub can_ascend: bool,
pub options: Vec<Cow<'static, str>>,
pub default: Option<SortFilterDefault>,
}Expand description
Fields§
§id: Cow<'static, str>The identifier for this filter.
title: Option<Cow<'static, str>>The display title for this filter.
hide_from_header: Option<bool>Whether this filter should be hidden from the filters list header.
can_ascend: boolWhether the sort can be ascending.
options: Vec<Cow<'static, str>>The list of available sort options.
default: Option<SortFilterDefault>The default sort option.
Trait Implementations§
Source§impl Clone for SortFilter
impl Clone for SortFilter
Source§fn clone(&self) -> SortFilter
fn clone(&self) -> SortFilter
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 moreSource§impl Debug for SortFilter
impl Debug for SortFilter
Source§impl Default for SortFilter
impl Default for SortFilter
Source§impl From<SortFilter> for Filter
impl From<SortFilter> for Filter
Source§fn from(value: SortFilter) -> Filter
fn from(value: SortFilter) -> Filter
Converts to this type from the input type.
Source§impl PartialEq for SortFilter
impl PartialEq for SortFilter
impl StructuralPartialEq for SortFilter
Auto Trait Implementations§
impl Freeze for SortFilter
impl RefUnwindSafe for SortFilter
impl Send for SortFilter
impl Sync for SortFilter
impl Unpin for SortFilter
impl UnwindSafe for SortFilter
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