[−][src]Struct couch_rs::types::find::FindQuery
Find query abstraction Parameters here /db/_find
Fields
selector: Value
limit: 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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for FindQuery
[src]
Auto Trait Implementations
impl RefUnwindSafe for FindQuery
impl Send for FindQuery
impl Sync for FindQuery
impl Unpin for FindQuery
impl UnwindSafe for FindQuery
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,