pub struct BoundedQuery { /* private fields */ }Expand description
The bounded authority query: a page of at most limit records in a total order, with an opaque
cursor for the next page. It never reads more than it returns plus what its plan requires.
Implementations§
Source§impl BoundedQuery
impl BoundedQuery
Sourcepub fn new(collection: impl Into<String>, limit: usize) -> Self
pub fn new(collection: impl Into<String>, limit: usize) -> Self
A query over collection returning at most limit records. Add at least one
BoundedQuery::order_by: the server requires a total order.
pub fn eq(self, field: impl Into<String>, value: Value) -> Self
pub fn neq(self, field: impl Into<String>, value: Value) -> Self
pub fn lt(self, field: impl Into<String>, value: Value) -> Self
pub fn lte(self, field: impl Into<String>, value: Value) -> Self
pub fn gt(self, field: impl Into<String>, value: Value) -> Self
pub fn gte(self, field: impl Into<String>, value: Value) -> Self
pub fn order_by(self, field: impl Into<String>, direction: Direction) -> Self
Sourcepub fn after(self, cursor: impl Into<String>) -> Self
pub fn after(self, cursor: impl Into<String>) -> Self
Continue from a previous page’s QueryPage::next_cursor.
Sourcepub fn semantic(self, clause: SemanticQueryClause) -> Self
pub fn semantic(self, clause: SemanticQueryClause) -> Self
Compose a semantic clause over the page this query produces (experimental; see
docs/reference/semantic-query.md). The page is never enlarged or refilled.
Trait Implementations§
Source§impl Clone for BoundedQuery
impl Clone for BoundedQuery
Source§impl Debug for BoundedQuery
impl Debug for BoundedQuery
Source§impl PartialEq for BoundedQuery
impl PartialEq for BoundedQuery
Source§impl Serialize for BoundedQuery
impl Serialize for BoundedQuery
impl StructuralPartialEq for BoundedQuery
Auto Trait Implementations§
impl Freeze for BoundedQuery
impl RefUnwindSafe for BoundedQuery
impl Send for BoundedQuery
impl Sync for BoundedQuery
impl Unpin for BoundedQuery
impl UnsafeUnpin for BoundedQuery
impl UnwindSafe for BoundedQuery
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