pub struct Builder { /* private fields */ }
Expand description
An implementation of the “builder pattern” that can be used to construct a new query.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn build(&mut self) -> Result<Query, Error>
pub fn build(&mut self) -> Result<Query, Error>
Attempt to construct a new query from the previously supplied values.
pub fn fields<I, K, V>(&mut self, key: K, iter: I) -> &mut Self
pub fn filter<K, V>(&mut self, key: K, value: V) -> &mut Self
pub fn include<V>(&mut self, value: V) -> &mut Self
pub fn page(&mut self, number: u64, size: Option<u64>) -> &mut Self
pub fn sort<F>(&mut self, field: F, direction: Direction) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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