#[non_exhaustive]pub struct PaginationConfiguration {
pub cursor_configuration: Option<CursorConfiguration>,
pub offset_configuration: Option<OffsetConfiguration>,
}Expand description
Configuration that defines how to handle paginated responses from REST APIs, supporting different pagination strategies used by various services.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cursor_configuration: Option<CursorConfiguration>Configuration for cursor-based pagination, where the API provides a cursor or token to retrieve the next page of results.
offset_configuration: Option<OffsetConfiguration>Configuration for offset-based pagination, where the API uses numeric offsets and limits to control which results are returned.
Implementations§
Source§impl PaginationConfiguration
impl PaginationConfiguration
Sourcepub fn cursor_configuration(&self) -> Option<&CursorConfiguration>
pub fn cursor_configuration(&self) -> Option<&CursorConfiguration>
Configuration for cursor-based pagination, where the API provides a cursor or token to retrieve the next page of results.
Sourcepub fn offset_configuration(&self) -> Option<&OffsetConfiguration>
pub fn offset_configuration(&self) -> Option<&OffsetConfiguration>
Configuration for offset-based pagination, where the API uses numeric offsets and limits to control which results are returned.
Source§impl PaginationConfiguration
impl PaginationConfiguration
Sourcepub fn builder() -> PaginationConfigurationBuilder
pub fn builder() -> PaginationConfigurationBuilder
Creates a new builder-style object to manufacture PaginationConfiguration.
Trait Implementations§
Source§impl Clone for PaginationConfiguration
impl Clone for PaginationConfiguration
Source§fn clone(&self) -> PaginationConfiguration
fn clone(&self) -> PaginationConfiguration
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 PaginationConfiguration
impl Debug for PaginationConfiguration
Source§impl PartialEq for PaginationConfiguration
impl PartialEq for PaginationConfiguration
Source§fn eq(&self, other: &PaginationConfiguration) -> bool
fn eq(&self, other: &PaginationConfiguration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PaginationConfiguration
Auto Trait Implementations§
impl Freeze for PaginationConfiguration
impl RefUnwindSafe for PaginationConfiguration
impl Send for PaginationConfiguration
impl Sync for PaginationConfiguration
impl Unpin for PaginationConfiguration
impl UnsafeUnpin for PaginationConfiguration
impl UnwindSafe for PaginationConfiguration
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.