Struct minority_game_server::schema::PlayerByScore [−][src]
pub struct PlayerByScore;
Trait Implementations
type View = Self
type View = Self
The view this schema is an implementation of.
The version of the view. Changing this value will cause indexes to be rebuilt.
The map function for this view. This function is responsible for emitting entries for any documents that should be contained in this View. If None is returned, the View will not include the document. Read more
If true, no two documents may emit the same key. Unique views are
updated when the document is saved, allowing for this check to be done
atomically. When a document is updated, all unique views will be
updated, and if any of them fail, the document will not be allowed to
update and an
Error::UniqueKeyViolation
will be
returned. Read more
The reduce function for this view. If Err(Error::ReduceUnimplemented)
is returned, queries that ask for a reduce operation will return an
error. See CouchDB
’s Reduce/Rereduce
documentation
for the design this implementation will be inspired by Read more
type Collection = Player
type Collection = Player
The collection this view belongs to
type Value = PlayerStats
type Value = PlayerStats
An associated type that can be stored with each entry in the view.
fn view_name(&self) -> ViewName
fn view_name(&self) -> ViewName
The namespaced name of the view.
Auto Trait Implementations
impl RefUnwindSafe for PlayerByScore
impl Send for PlayerByScore
impl Sync for PlayerByScore
impl Unpin for PlayerByScore
impl UnwindSafe for PlayerByScore
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
type View = <T as CollectionViewSchema>::View
type View = <T as CollectionViewSchema>::View
The view this schema is defined for.
The version of the view. Changing this value will cause indexes to be rebuilt.
The map function for this view. This function is responsible for emitting entries for any documents that should be contained in this View. If None is returned, the View will not include the document. See the user guide’s chapter on views for more information on how map works. Read more
Returns a value that is produced by reducing a list of mappings
into a
single value. If rereduce
is true, the values contained in the
mappings have already been reduced at least one time. If an error of
ReduceUnimplemented
is returned,
queries that ask for a reduce operation will return an error. See the
user guide’s chapter on views for more information on how reduce
works. Read more
If true, no two documents may emit the same key. Unique views are
updated when the document is saved, allowing for this check to be done
atomically. When a document is updated, all unique views will be
updated, and if any of them fail, the document will not be allowed to
update and an
Error::UniqueKeyViolation
will be
returned. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more