Struct couchdb::action::GetView [] [src]

pub struct GetView<'a, P, K, V> where P: IntoViewPath, K: Deserialize + Serialize, V: Deserialize {
    // some fields omitted
}

Action to execute a view.

Errors

The following are some of the errors that may occur as a result of executing this action:

Methods

impl<'a, P, K, V> GetView<'a, P, K, V> where P: IntoViewPath, K: Deserialize + Serialize, V: Deserialize

fn endkey(self, key: K) -> Self

Sets the minimum key for rows contained within the result.

fn reduce(self, v: bool) -> Self

Sets whether to run the reduce view function.

fn startkey(self, key: K) -> Self

Sets the maximum key for rows contained within the result.

fn run(self) -> Result<ViewResult<K, V>, Error>

Sends the action request and waits for the response.