Struct json_api::query::Builder
[−]
[src]
pub struct Builder { /* fields omitted */ }An implementation of the "builder pattern" that can be used to construct a new query.
Methods
impl Builder[src]
fn build(&mut self) -> Result<Query, Error>[src]
Attempt to construct a new query from the previously supplied values.
fn fields<I, K, V>(&mut self, key: K, iter: I) -> &mut Self where
I: IntoIterator<Item = V>,
K: Into<String>,
V: Into<String>, [src]
I: IntoIterator<Item = V>,
K: Into<String>,
V: Into<String>,
fn filter<K, V>(&mut self, key: K, value: V) -> &mut Self where
K: Into<String>,
V: Into<Value>, [src]
K: Into<String>,
V: Into<Value>,
fn include<V>(&mut self, value: V) -> &mut Self where
V: Into<String>, [src]
V: Into<String>,
fn page(&mut self, number: u64, size: Option<u64>) -> &mut Self[src]
fn sort<F>(&mut self, field: F, direction: Direction) -> &mut Self where
F: Into<String>, [src]
F: Into<String>,