pub trait View: 'static + Send + Sync + Debug {
    type Collection: Collection;
    type Key: 'static + for<'a> Key<'a>;
    type Value: Send + Sync;
    fn name(&self) -> Name;

    fn view_name(&self) -> ViewName { ... }
}
Expand description

A mechanism for accessing mapped and/or reduced data from a Collection.

See the user guide for a walkthrough of how views work.

Associated Types

The collection this view belongs to

The key for this view.

An associated type that can be stored with each entry in the view.

Required methods

The name of the view. Must be unique per collection.

Provided methods

The namespaced name of the view.

Implementors