pub enum DataValue {
Text(String),
Number(f64),
Bool(bool),
Date(NaiveDate),
Category(String),
Null,
}Expand description
Typed cell value — replaces stringly-typed HashMap<String, String>.
Variants§
Implementations§
Source§impl DataValue
impl DataValue
Sourcepub fn display_string(&self) -> String
pub fn display_string(&self) -> String
Human-readable string for display and text-based filtering.
Sourcepub fn is_empty_value(&self) -> bool
pub fn is_empty_value(&self) -> bool
Whether this value is considered empty for filter operators.
Sourcepub fn filter_text(&self) -> String
pub fn filter_text(&self) -> String
Case-insensitive text for Contains/StartsWith operators.
Sourcepub fn partial_cmp_typed(
&self,
other: &Self,
hint: CompareHint,
) -> Option<Ordering>
pub fn partial_cmp_typed( &self, other: &Self, hint: CompareHint, ) -> Option<Ordering>
Typed partial comparison for sorting. Cross-variant or invalid pairs return None.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataValue
impl<'de> Deserialize<'de> for DataValue
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
impl StructuralPartialEq for DataValue
Auto Trait Implementations§
impl Freeze for DataValue
impl RefUnwindSafe for DataValue
impl Send for DataValue
impl Sync for DataValue
impl Unpin for DataValue
impl UnsafeUnpin for DataValue
impl UnwindSafe for DataValue
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