pub struct DocumentScanRequest<'a> { /* private fields */ }Expand description
One bounded document-scan request.
Implementations§
Source§impl<'a> DocumentScanRequest<'a>
impl<'a> DocumentScanRequest<'a>
Sourcepub fn new(limit: usize, fields: DocumentFields, control: QueryControl) -> Self
pub fn new(limit: usize, fields: DocumentFields, control: QueryControl) -> Self
Creates a storage-ordered scan without a filter or timestamp bound.
Sourcepub const fn with_order(self, order: ScanOrder) -> Self
pub const fn with_order(self, order: ScanOrder) -> Self
Selects the deterministic row ordering.
Sourcepub const fn with_cursor(self, cursor: DocumentScanCursor) -> Self
pub const fn with_cursor(self, cursor: DocumentScanCursor) -> Self
Resumes at a continuation returned by an earlier page.
Sourcepub const fn with_timestamp_range(self, start: i64, end: i64) -> Self
pub const fn with_timestamp_range(self, start: i64, end: i64) -> Self
Restricts timestamps to the half-open interval [start, end).
Sourcepub const fn with_predicate(self, predicate: &'a Predicate) -> Self
pub const fn with_predicate(self, predicate: &'a Predicate) -> Self
Applies one exact typed metadata predicate.
Trait Implementations§
Source§impl<'a> Clone for DocumentScanRequest<'a>
impl<'a> Clone for DocumentScanRequest<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DocumentScanRequest<'a>
impl<'a> !UnwindSafe for DocumentScanRequest<'a>
impl<'a> Freeze for DocumentScanRequest<'a>
impl<'a> Send for DocumentScanRequest<'a>
impl<'a> Sync for DocumentScanRequest<'a>
impl<'a> Unpin for DocumentScanRequest<'a>
impl<'a> UnsafeUnpin for DocumentScanRequest<'a>
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