pub enum FilterKind {
Text {
placeholder: Option<Cow<'static, str>>,
},
Sort {
can_ascend: bool,
options: Vec<Cow<'static, str>>,
default: Option<SortFilterDefault>,
},
Check {
name: Option<Cow<'static, str>>,
can_exclude: bool,
default: Option<bool>,
},
Select {
is_genre: bool,
uses_tag_style: bool,
options: Vec<Cow<'static, str>>,
ids: Option<Vec<Cow<'static, str>>>,
default: Option<Cow<'static, str>>,
},
MultiSelect {
is_genre: bool,
can_exclude: bool,
uses_tag_style: bool,
options: Vec<Cow<'static, str>>,
ids: Option<Vec<Cow<'static, str>>>,
default_included: Option<Vec<Cow<'static, str>>>,
default_excluded: Option<Vec<Cow<'static, str>>>,
},
Note(Cow<'static, str>),
Range {
min: Option<f32>,
max: Option<f32>,
decimal: bool,
},
}Expand description
The kind of filter.
Variants§
Text
A text field.
Sort
A list of sort options.
Check
A checkbox.
Select
A list of values that allows a single selection.
Fields
MultiSelect
A list of values that allows multiple selections.
Fields
Note(Cow<'static, str>)
A block of text displayed in the filter menu.
Range
A range filter.
Trait Implementations§
Source§impl Clone for FilterKind
impl Clone for FilterKind
Source§fn clone(&self) -> FilterKind
fn clone(&self) -> FilterKind
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 FilterKind
impl Debug for FilterKind
Source§impl PartialEq for FilterKind
impl PartialEq for FilterKind
impl StructuralPartialEq for FilterKind
Auto Trait Implementations§
impl Freeze for FilterKind
impl RefUnwindSafe for FilterKind
impl Send for FilterKind
impl Sync for FilterKind
impl Unpin for FilterKind
impl UnwindSafe for FilterKind
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