pub struct ViewQueryOptions {
pub key: Option<Value>,
pub start_key: Option<Value>,
pub end_key: Option<Value>,
pub inclusive_end: bool,
pub descending: bool,
pub skip: u64,
pub limit: Option<u64>,
pub include_docs: bool,
pub reduce: bool,
pub group: bool,
pub group_level: Option<u64>,
}Expand description
Options for querying a view.
Fields§
§key: Option<Value>Only return rows with this exact key.
start_key: Option<Value>Start of key range (inclusive).
end_key: Option<Value>End of key range (inclusive by default).
inclusive_end: boolWhether to include the end_key in the range.
descending: boolReverse the order.
skip: u64Number of rows to skip.
limit: Option<u64>Maximum number of rows.
include_docs: boolInclude the full document in each row.
reduce: boolWhether to run the reduce function.
group: boolGroup by key (requires reduce).
group_level: Option<u64>Group to this many array elements of the key.
Implementations§
Trait Implementations§
Source§impl Clone for ViewQueryOptions
impl Clone for ViewQueryOptions
Source§fn clone(&self) -> ViewQueryOptions
fn clone(&self) -> ViewQueryOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ViewQueryOptions
impl Debug for ViewQueryOptions
Source§impl Default for ViewQueryOptions
impl Default for ViewQueryOptions
Source§fn default() -> ViewQueryOptions
fn default() -> ViewQueryOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ViewQueryOptions
impl RefUnwindSafe for ViewQueryOptions
impl Send for ViewQueryOptions
impl Sync for ViewQueryOptions
impl Unpin for ViewQueryOptions
impl UnwindSafe for ViewQueryOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more