pub struct Filter {
pub id: Cow<'static, str>,
pub title: Option<Cow<'static, str>>,
pub hide_from_header: Option<bool>,
pub kind: FilterKind,
}Expand description
A filter that can be used in a source search.
This struct shouldn’t be constructed directly. Instead, use the individual filter structs and call into.
Fields§
§id: Cow<'static, str>§title: Option<Cow<'static, str>>§hide_from_header: Option<bool>§kind: FilterKindImplementations§
Trait Implementations§
Source§impl From<CheckFilter> for Filter
impl From<CheckFilter> for Filter
Source§fn from(value: CheckFilter) -> Filter
fn from(value: CheckFilter) -> Filter
Converts to this type from the input type.
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 From<RangeFilter> for Filter
impl From<RangeFilter> for Filter
Source§fn from(value: RangeFilter) -> Filter
fn from(value: RangeFilter) -> Filter
Converts to this type from the input type.
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 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 From<TextFilter> for Filter
impl From<TextFilter> for Filter
Source§fn from(value: TextFilter) -> Filter
fn from(value: TextFilter) -> Filter
Converts to this type from the input type.
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
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