pub struct TextFilter {
pub id: Cow<'static, str>,
pub title: Option<Cow<'static, str>>,
pub hide_from_header: Option<bool>,
pub placeholder: 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.
placeholder: Option<Cow<'static, str>>Optional placeholder text to display when the field is empty.
Trait Implementations§
Source§impl Clone for TextFilter
impl Clone for TextFilter
Source§fn clone(&self) -> TextFilter
fn clone(&self) -> TextFilter
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 TextFilter
impl Debug for TextFilter
Source§impl Default for TextFilter
impl Default for TextFilter
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.
Source§impl PartialEq for TextFilter
impl PartialEq for TextFilter
impl StructuralPartialEq for TextFilter
Auto Trait Implementations§
impl Freeze for TextFilter
impl RefUnwindSafe for TextFilter
impl Send for TextFilter
impl Sync for TextFilter
impl Unpin for TextFilter
impl UnwindSafe for TextFilter
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