pub struct QueryPageRequest { /* private fields */ }Expand description
Page size and optional continuation supplied to a named query.
Implementations§
Source§impl QueryPageRequest
impl QueryPageRequest
Sourcepub fn new(limit: u32, cursor: Option<QueryCursor>) -> Result<Self>
pub fn new(limit: u32, cursor: Option<QueryCursor>) -> Result<Self>
Creates a bounded page request.
§Errors
Returns an invalid-argument error when limit is zero or greater than
MAX_QUERY_PAGE_SIZE.
Sourcepub const fn cursor(&self) -> Option<&QueryCursor>
pub const fn cursor(&self) -> Option<&QueryCursor>
Returns the preceding page’s continuation token, when present.
Trait Implementations§
Source§impl Clone for QueryPageRequest
impl Clone for QueryPageRequest
Source§fn clone(&self) -> QueryPageRequest
fn clone(&self) -> QueryPageRequest
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 moreSource§impl Debug for QueryPageRequest
impl Debug for QueryPageRequest
impl Eq for QueryPageRequest
Source§impl PartialEq for QueryPageRequest
impl PartialEq for QueryPageRequest
impl StructuralPartialEq for QueryPageRequest
Auto Trait Implementations§
impl Freeze for QueryPageRequest
impl RefUnwindSafe for QueryPageRequest
impl Send for QueryPageRequest
impl Sync for QueryPageRequest
impl Unpin for QueryPageRequest
impl UnsafeUnpin for QueryPageRequest
impl UnwindSafe for QueryPageRequest
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