pub enum FilterValue {
Text(String),
Number(f64),
NumberRange {
min: Option<f64>,
max: Option<f64>,
},
Boolean(bool),
MultiSelect(Vec<String>),
DateRange {
start: Option<String>,
end: Option<String>,
},
Custom(String),
}Expand description
Filter value that can be applied to a column.
Each variant represents a different type of filter criterion that can be applied to column data.
Variants§
Text(String)
Text filter value.
Number(f64)
Numeric filter value.
NumberRange
Numeric range filter.
Boolean(bool)
Boolean filter value.
MultiSelect(Vec<String>)
Multiple values (for select filters).
DateRange
Date range filter (ISO 8601 strings).
Custom(String)
Custom filter value.
Implementations§
Source§impl FilterValue
impl FilterValue
Sourcepub fn as_display_string(&self) -> String
pub fn as_display_string(&self) -> String
Returns the value as a string for display.
§Returns
String: A human-readable string representation of the filter value.
Trait Implementations§
Source§impl Clone for FilterValue
impl Clone for FilterValue
Source§fn clone(&self) -> FilterValue
fn clone(&self) -> FilterValue
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 FilterValue
impl Debug for FilterValue
Source§impl From<&str> for FilterValue
Creates a text FilterValue from a string slice.
impl From<&str> for FilterValue
Creates a text FilterValue from a string slice.
Source§fn from(s: &str) -> FilterValue
fn from(s: &str) -> FilterValue
Converts to this type from the input type.
Source§impl From<String> for FilterValue
Creates a text FilterValue from an owned String.
impl From<String> for FilterValue
Creates a text FilterValue from an owned String.
Source§fn from(s: String) -> FilterValue
fn from(s: String) -> FilterValue
Converts to this type from the input type.
Source§impl PartialEq for FilterValue
impl PartialEq for FilterValue
impl StructuralPartialEq for FilterValue
Auto Trait Implementations§
impl Freeze for FilterValue
impl RefUnwindSafe for FilterValue
impl Send for FilterValue
impl Sync for FilterValue
impl Unpin for FilterValue
impl UnsafeUnpin for FilterValue
impl UnwindSafe for FilterValue
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.