pub struct SelectFilter {
pub id: Cow<'static, str>,
pub title: Option<Cow<'static, str>>,
pub hide_from_header: Option<bool>,
pub is_genre: bool,
pub uses_tag_style: bool,
pub options: Vec<Cow<'static, str>>,
pub ids: Option<Vec<Cow<'static, str>>>,
pub default: Option<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.
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: Option<Cow<'static, str>>The default selected option.
Trait Implementations§
Source§impl Clone for SelectFilter
impl Clone for SelectFilter
Source§fn clone(&self) -> SelectFilter
fn clone(&self) -> SelectFilter
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 SelectFilter
impl Debug for SelectFilter
Source§impl Default for SelectFilter
impl Default for SelectFilter
Source§impl From<SelectFilter> for Filter
impl From<SelectFilter> for Filter
Source§fn from(value: SelectFilter) -> Filter
fn from(value: SelectFilter) -> Filter
Converts to this type from the input type.
Source§impl PartialEq for SelectFilter
impl PartialEq for SelectFilter
impl StructuralPartialEq for SelectFilter
Auto Trait Implementations§
impl Freeze for SelectFilter
impl RefUnwindSafe for SelectFilter
impl Send for SelectFilter
impl Sync for SelectFilter
impl Unpin for SelectFilter
impl UnwindSafe for SelectFilter
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