Skip to main content

FilterText

Trait FilterText 

Source
pub trait FilterText:
    Sized
    + Field<Inner = String>
    + Send
    + Sync
    + 'static {
    // Required method
    fn none<M>(path: Path<M, Self>) -> Option<Expr<bool>>;
}
Expand description

A field type a TextFilter matches: String and Option<String>.

Required Methods§

Source

fn none<M>(path: Path<M, Self>) -> Option<Expr<bool>>

The predicate selecting a record whose field path holds nothing, None for a field that always holds a value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FilterText for Option<String>

Source§

fn none<M>(path: Path<M, Option<String>>) -> Option<Expr<bool>>

Source§

impl FilterText for String

Source§

fn none<M>(_path: Path<M, String>) -> Option<Expr<bool>>

Implementors§