Trait ComparableFilterValue

Source
pub trait ComparableFilterValue {
    // Required method
    fn value_string(&self) -> Cow<'static, str>;
}
Expand description

a trait for comparable filter values, we do not just use Display because one of our main application is dates and we need a specific format

Required Methods§

Source

fn value_string(&self) -> Cow<'static, str>

returns a string representation of a single value (e.g. a date) to be combined with the comparison operators by the Display trait of ComparableFilter

Implementations on Foreign Types§

Source§

impl ComparableFilterValue for Date

Source§

fn value_string(&self) -> Cow<'static, str>

Source§

impl ComparableFilterValue for OffsetDateTime

Source§

fn value_string(&self) -> Cow<'static, str>

Implementors§