Trait Queryable

Source
pub trait Queryable {
    type KeyValue: Debug + QueryKeyValue + Clone;

    // Required method
    fn matches(&self, key: &Self::KeyValue) -> bool;
}
Expand description

Specific trait that specifies that something can be matched by a Query.

Required Associated Types§

Source

type KeyValue: Debug + QueryKeyValue + Clone

The type defining the possible keys a user can input.

Required Methods§

Source

fn matches(&self, key: &Self::KeyValue) -> bool

Check whether the key value pair is a match for this Queryable object.

Implementors§