pub struct CursorPageRequest {
pub page: usize,
pub page_size: NonZeroUsize,
pub sort: Option<Sort>,
pub revision: u64,
pub cursor: Option<String>,
}Expand description
A cursor request. Capture this value and the search query before dispatching asynchronous work; return the original request with its response.
cursor: None starts from the beginning. Tokens are opaque UTF-8 strings;
serialize structured keys or encode binary tokens in the application.
page is a navigation ordinal, never a database offset.
Fields§
§page: usize§page_size: NonZeroUsize§sort: Option<Sort>§revision: u64Process-wide request ID with the same lifecycle as PageRequest::revision.
cursor: Option<String>Trait Implementations§
Source§impl Clone for CursorPageRequest
impl Clone for CursorPageRequest
Source§impl Debug for CursorPageRequest
impl Debug for CursorPageRequest
impl Eq for CursorPageRequest
Source§impl PartialEq for CursorPageRequest
impl PartialEq for CursorPageRequest
impl StructuralPartialEq for CursorPageRequest
Auto Trait Implementations§
impl Freeze for CursorPageRequest
impl RefUnwindSafe for CursorPageRequest
impl Send for CursorPageRequest
impl Sync for CursorPageRequest
impl Unpin for CursorPageRequest
impl UnsafeUnpin for CursorPageRequest
impl UnwindSafe for CursorPageRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more