Struct couchdb::Design [] [src]

pub struct Design {
    pub views: ViewFunctionMap,
    // some fields omitted
}

Content of a design document.

CouchDB design documents contain many fields. However, the Design type currently supports only views.

Applications may construct a Design by using a DesignBuilder.

Fields

views

Map of view names to the view function for each name.

Methods

impl Design

fn new() -> Self

Construct an empty design document.

An empty design document contains no views.

Trait Implementations

impl Serialize for Design

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

impl Deserialize for Design

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

Derived Implementations

impl PartialEq for Design

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

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

impl Eq for Design

impl Debug for Design

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

impl Clone for Design

fn clone(&self) -> Design

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