#[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
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.
Source§impl PaginationConfiguration
impl PaginationConfiguration
Sourcepub fn deserialize(
deserializer: &mut dyn ShapeDeserializer,
) -> Result<Self, SerdeError>
pub fn deserialize( deserializer: &mut dyn ShapeDeserializer, ) -> Result<Self, SerdeError>
Deserializes this structure from a [ShapeDeserializer].
Trait Implementations§
Source§impl Clone for PaginationConfiguration
impl Clone for PaginationConfiguration
Source§fn clone(&self) -> PaginationConfiguration
fn clone(&self) -> PaginationConfiguration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PaginationConfiguration
impl Debug for PaginationConfiguration
Source§impl PartialEq for PaginationConfiguration
impl PartialEq for PaginationConfiguration
Source§impl SerializableStruct for PaginationConfiguration
impl SerializableStruct for PaginationConfiguration
Source§fn schema(&self) -> &Schema<'_>
fn schema(&self) -> &Schema<'_>
Source§fn serialize_members(
&self,
ser: &mut dyn ShapeSerializer,
) -> Result<(), SerdeError>
fn serialize_members( &self, ser: &mut dyn ShapeSerializer, ) -> Result<(), SerdeError>
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
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> ⓘ
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> ⓘ
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