pub struct MultiSelectFilter {
pub id: Cow<'static, str>,
pub title: Option<Cow<'static, str>>,
pub hide_from_header: Option<bool>,
pub is_genre: bool,
pub can_exclude: bool,
pub uses_tag_style: bool,
pub options: Vec<Cow<'static, str>>,
pub ids: Option<Vec<Cow<'static, str>>>,
pub default_included: Option<Vec<Cow<'static, str>>>,
pub default_excluded: Option<Vec<Cow<'static, str>>>,
}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.
is_genre: boolIndicates if the filter is for genres.
can_exclude: boolWhether options can be excluded as well as included.
uses_tag_style: boolWhether to display the options as tags.
options: Vec<Cow<'static, str>>The list of options to display.
ids: Option<Vec<Cow<'static, str>>>Optional IDs for each option. If not provided, the options are used.
default_included: Option<Vec<Cow<'static, str>>>§default_excluded: Option<Vec<Cow<'static, str>>>Trait Implementations§
Source§impl Clone for MultiSelectFilter
impl Clone for MultiSelectFilter
Source§fn clone(&self) -> MultiSelectFilter
fn clone(&self) -> MultiSelectFilter
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 MultiSelectFilter
impl Debug for MultiSelectFilter
Source§impl Default for MultiSelectFilter
impl Default for MultiSelectFilter
Source§impl From<MultiSelectFilter> for Filter
impl From<MultiSelectFilter> for Filter
Source§fn from(value: MultiSelectFilter) -> Filter
fn from(value: MultiSelectFilter) -> Filter
Converts to this type from the input type.
Source§impl PartialEq for MultiSelectFilter
impl PartialEq for MultiSelectFilter
impl StructuralPartialEq for MultiSelectFilter
Auto Trait Implementations§
impl Freeze for MultiSelectFilter
impl RefUnwindSafe for MultiSelectFilter
impl Send for MultiSelectFilter
impl Sync for MultiSelectFilter
impl Unpin for MultiSelectFilter
impl UnwindSafe for MultiSelectFilter
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