pub enum PaginationStrategy {
None,
Cursor,
Offset,
LinkHeader,
}Expand description
Pagination strategy detected from the OpenAPI spec for an operation.
Stored at cache time to avoid re-parsing the spec on each request.
Variants§
None
No pagination detected; --auto-paginate will warn and execute once.
Cursor
Cursor-based: a field in the response body carries the next-page token.
Offset
Offset/page-based: incrementing a page or offset query parameter.
LinkHeader
RFC 5988 Link: <url>; rel="next" header drives the next request URL.
Trait Implementations§
Source§impl Clone for PaginationStrategy
impl Clone for PaginationStrategy
Source§fn clone(&self) -> PaginationStrategy
fn clone(&self) -> PaginationStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 PaginationStrategy
impl Debug for PaginationStrategy
Source§impl Default for PaginationStrategy
impl Default for PaginationStrategy
Source§fn default() -> PaginationStrategy
fn default() -> PaginationStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaginationStrategy
impl<'de> Deserialize<'de> for PaginationStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PaginationStrategy
impl PartialEq for PaginationStrategy
Source§impl Serialize for PaginationStrategy
impl Serialize for PaginationStrategy
impl Copy for PaginationStrategy
impl Eq for PaginationStrategy
impl StructuralPartialEq for PaginationStrategy
Auto Trait Implementations§
impl Freeze for PaginationStrategy
impl RefUnwindSafe for PaginationStrategy
impl Send for PaginationStrategy
impl Sync for PaginationStrategy
impl Unpin for PaginationStrategy
impl UnsafeUnpin for PaginationStrategy
impl UnwindSafe for PaginationStrategy
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.