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§