[][src]Struct couch_rs::types::find::FindQuery

pub struct FindQuery {
    pub selector: Value,
    pub limit: Option<u64>,
    pub skip: Option<u64>,
    pub sort: Vec<SortSpec>,
    pub fields: Option<Vec<String>>,
    pub use_index: Option<IndexSpec>,
    pub r: Option<i32>,
    pub bookmark: Option<String>,
    pub update: Option<bool>,
    pub stable: Option<bool>,
    pub stale: Option<String>,
    pub execution_stats: Option<bool>,
}

Find query abstraction Parameters here /db/_find

Fields

selector: Valuelimit: Option<u64>skip: Option<u64>sort: Vec<SortSpec>fields: Option<Vec<String>>use_index: Option<IndexSpec>r: Option<i32>bookmark: Option<String>update: Option<bool>stable: Option<bool>stale: Option<String>execution_stats: Option<bool>

Implementations

impl FindQuery[src]

Find query. You can use the builder paradigm to construct these parameters easily:

use couch_rs::types::find::FindQuery;
let _query = FindQuery::find_all().skip(10).limit(10);

pub fn new_from_value(query: Value) -> Self[src]

pub fn new(selector: Value) -> Self[src]

pub fn find_all() -> Self[src]

pub fn as_value(&self) -> Value[src]

pub fn limit(self, limit: u64) -> Self[src]

pub fn skip(self, skip: u64) -> Self[src]

pub fn sort(self, sort: Vec<SortSpec>) -> Self[src]

pub fn fields(self, fields: Vec<String>) -> Self[src]

pub fn use_index(self, use_index: IndexSpec) -> Self[src]

pub fn r(self, r: i32) -> Self[src]

pub fn bookmark(self, bookmark: &str) -> Self[src]

pub fn update(self, update: bool) -> Self[src]

pub fn stable(self, stable: bool) -> Self[src]

pub fn stale(self, stale: &str) -> Self[src]

pub fn execution_stats(self, execution_stats: bool) -> Self[src]

Trait Implementations

impl Clone for FindQuery[src]

impl Debug for FindQuery[src]

impl<'de> Deserialize<'de> for FindQuery[src]

impl Display for FindQuery[src]

impl From<Value> for FindQuery[src]

impl Into<Value> for FindQuery[src]

impl<'_> Into<Value> for &'_ FindQuery[src]

impl PartialEq<FindQuery> for FindQuery[src]

impl Serialize for FindQuery[src]

impl StructuralPartialEq for FindQuery[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.