pub struct QueryBuilder { /* private fields */ }Implementations§
Source§impl QueryBuilder
impl QueryBuilder
pub fn where_(self, field: impl Into<String>, operator: FilterOperator) -> Self
pub fn param(self, key: impl Into<String>, value: impl ToString) -> Self
pub fn sort(self, field: impl Into<String>, direction: SortDirection) -> Self
pub fn page(self, page: u64) -> Self
pub fn limit(self, limit: u64) -> Self
pub fn select<I, S>(self, fields: I) -> Self
pub async fn get<T>(self) -> Result<T>where
T: DeserializeOwned,
pub async fn get_with_options<T>(self, options: RequestOptions) -> Result<T>where
T: DeserializeOwned,
Trait Implementations§
Source§impl Clone for QueryBuilder
impl Clone for QueryBuilder
Source§fn clone(&self) -> QueryBuilder
fn clone(&self) -> QueryBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueryBuilder
impl !RefUnwindSafe for QueryBuilder
impl Send for QueryBuilder
impl Sync for QueryBuilder
impl Unpin for QueryBuilder
impl UnsafeUnpin for QueryBuilder
impl !UnwindSafe for QueryBuilder
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