Struct couchdb::ViewFunction
[−]
[src]
pub struct ViewFunction { pub map: String, pub reduce: Option<String>, // some fields omitted }
JavaScript map
and reduce
functions for a CouchDB view.
Applications may construct a ViewFunction
by using a
ViewFunctionBuilder
.
Fields
map | JavaScript function that takes a document and emits zero or more key-value pairs. |
reduce | JavaScript function that reduces multiple values emitted from the map function into a single value. |