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.

Trait Implementations

impl Serialize for ViewFunction

fn serialize<S>(&self, s: &mut S) -> Result<(), S::Error> where S: Serializer

impl Deserialize for ViewFunction

fn deserialize<D>(d: &mut D) -> Result<Self, D::Error> where D: Deserializer

Derived Implementations

impl PartialOrd for ViewFunction

fn partial_cmp(&self, __arg_0: &ViewFunction) -> Option<Ordering>

fn lt(&self, __arg_0: &ViewFunction) -> bool

fn le(&self, __arg_0: &ViewFunction) -> bool

fn gt(&self, __arg_0: &ViewFunction) -> bool

fn ge(&self, __arg_0: &ViewFunction) -> bool

impl PartialEq for ViewFunction

fn eq(&self, __arg_0: &ViewFunction) -> bool

fn ne(&self, __arg_0: &ViewFunction) -> bool

impl Ord for ViewFunction

fn cmp(&self, __arg_0: &ViewFunction) -> Ordering

impl Hash for ViewFunction

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for ViewFunction

impl Debug for ViewFunction

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for ViewFunction

fn clone(&self) -> ViewFunction

fn clone_from(&mut self, source: &Self)