pub struct FilterDef {
pub field: String,
pub label: String,
pub filter_type: FilterType,
pub choices: Vec<FilterChoice>,
pub current: Option<String>,
}Expand description
Filter definition
Fields§
§field: StringField name
label: StringDisplay label
filter_type: FilterTypeFilter type
choices: Vec<FilterChoice>Available choices
current: Option<String>Current value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FilterDef
impl<'de> Deserialize<'de> for FilterDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FilterDef
impl RefUnwindSafe for FilterDef
impl Send for FilterDef
impl Sync for FilterDef
impl Unpin for FilterDef
impl UnwindSafe for FilterDef
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