pub struct Query { /* private fields */ }Expand description
Query builder. Spec §B.7.
Implementations§
Source§impl Query
impl Query
Sourcepub fn topic(self, topic: &str) -> Result<Self, QueryError>
pub fn topic(self, topic: &str) -> Result<Self, QueryError>
Sourcepub fn state(self, state: ObjectState) -> Self
pub fn state(self, state: ObjectState) -> Self
State filter.
Sourcepub fn order_by<F>(self, order: SortOrder, key_fn: F) -> Self
pub fn order_by<F>(self, order: SortOrder, key_fn: F) -> Self
Sorting — the caller supplies a key-extraction function.
Sourcepub fn limit(self, limit: usize) -> Result<Self, QueryError>
pub fn limit(self, limit: usize) -> Result<Self, QueryError>
Sourcepub fn execute(&self, cache: &ObjectCache) -> QueryResult
pub fn execute(&self, cache: &ObjectCache) -> QueryResult
Spec §B.7.1 — execute the query against an ObjectCache.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Query
impl !UnwindSafe for Query
impl Freeze for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
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