Struct chill::DesignBuilder [] [src]

pub struct DesignBuilder {
    // some fields omitted
}

Builder for a design document's content.

Builder is a convenience type for applications that create new design documents. For more information about design documents, please see the CouchDB documentation.

Methods

impl DesignBuilder
[src]

fn new() -> Self

Constructs a new builder containing empty design document content.

fn unwrap(self) -> Design

Returns the builder's design document content.

fn insert_view<V>(self, view_name: V, view_function: ViewFunction) -> Self where V: Into<ViewName>

Inserts a view into the design document content.

Trait Implementations

impl Debug for DesignBuilder
[src]

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

Formats the value using the given formatter.