pub struct FilterField {
pub name: String,
pub caption: String,
pub kind: FilterFieldKind,
pub values: Vec<LookupItem>,
}Expand description
A field a FilterBuilder offers.
Fields§
§name: StringThe name in the expression.
caption: StringWhat people see.
kind: FilterFieldKindWhat it holds.
values: Vec<LookupItem>Values to pick from for “is any of”: the key as the expression writes it
(2026-11-02 for a date) and the label people see.
Implementations§
Source§impl FilterField
impl FilterField
Sourcepub fn new(
name: impl Into<String>,
caption: impl Into<String>,
kind: FilterFieldKind,
) -> Self
pub fn new( name: impl Into<String>, caption: impl Into<String>, kind: FilterFieldKind, ) -> Self
A field with this name in the expression, and this caption on the screen.
Sourcepub fn values(self, values: impl IntoIterator<Item = LookupItem>) -> Self
pub fn values(self, values: impl IntoIterator<Item = LookupItem>) -> Self
The values offered for “is any of” and “is none of”. Others can still be typed.
Trait Implementations§
Source§impl Clone for FilterField
impl Clone for FilterField
Source§fn clone(&self) -> FilterField
fn clone(&self) -> FilterField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FilterField
impl Debug for FilterField
impl Eq for FilterField
Source§impl PartialEq for FilterField
impl PartialEq for FilterField
impl StructuralPartialEq for FilterField
Auto Trait Implementations§
impl Freeze for FilterField
impl RefUnwindSafe for FilterField
impl Send for FilterField
impl Sync for FilterField
impl Unpin for FilterField
impl UnsafeUnpin for FilterField
impl UnwindSafe for FilterField
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more