#[non_exhaustive]pub enum PageRequest {
Query(Query),
Follow(String),
}Available on crate feature
api only.Expand description
Where the next page is: an advanced query, or a URL the server handed over.
A server that pages by cursor puts the continuation in a
Link: …; rel="next" header, and its cursor is opaque — re-deriving a
request from offset would fetch the same page forever. So the stream
follows the link when there is one, and advances offset when there is not.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Query(Query)
Fetch by offset/limit against the collection.
Follow(String)
Fetch the absolute URL the previous page’s Link header named.
Trait Implementations§
Source§impl Clone for PageRequest
impl Clone for PageRequest
Source§impl Debug for PageRequest
impl Debug for PageRequest
impl Eq for PageRequest
Source§impl PartialEq for PageRequest
impl PartialEq for PageRequest
impl StructuralPartialEq for PageRequest
Auto Trait Implementations§
impl Forget for PageRequest
impl Freeze for PageRequest
impl Move for PageRequest
impl RefUnwindSafe for PageRequest
impl Send for PageRequest
impl Sync for PageRequest
impl Unpin for PageRequest
impl UnsafeUnpin for PageRequest
impl UnwindSafe for PageRequest
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§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.