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:
Error::InternalServerError
: An error occurred when executing the view.Error::NotFound
: The view does not exist.Error::Unauthorized
: The client is unauthorized.
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.