#[non_exhaustive]pub struct PaginationConfigurationBuilder { /* private fields */ }
Expand description
A builder for PaginationConfiguration
.
Implementations§
source§impl PaginationConfigurationBuilder
impl PaginationConfigurationBuilder
sourcepub fn page_size(self, input: i64) -> Self
pub fn page_size(self, input: i64) -> Self
Indicates how many items render in one page.
This field is required.sourcepub fn set_page_size(self, input: Option<i64>) -> Self
pub fn set_page_size(self, input: Option<i64>) -> Self
Indicates how many items render in one page.
sourcepub fn get_page_size(&self) -> &Option<i64>
pub fn get_page_size(&self) -> &Option<i64>
Indicates how many items render in one page.
sourcepub fn page_number(self, input: i64) -> Self
pub fn page_number(self, input: i64) -> Self
Indicates the page number.
This field is required.sourcepub fn set_page_number(self, input: Option<i64>) -> Self
pub fn set_page_number(self, input: Option<i64>) -> Self
Indicates the page number.
sourcepub fn get_page_number(&self) -> &Option<i64>
pub fn get_page_number(&self) -> &Option<i64>
Indicates the page number.
sourcepub fn build(self) -> Result<PaginationConfiguration, BuildError>
pub fn build(self) -> Result<PaginationConfiguration, BuildError>
Consumes the builder and constructs a PaginationConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PaginationConfigurationBuilder
impl Clone for PaginationConfigurationBuilder
source§fn clone(&self) -> PaginationConfigurationBuilder
fn clone(&self) -> PaginationConfigurationBuilder
Returns a copy 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 Default for PaginationConfigurationBuilder
impl Default for PaginationConfigurationBuilder
source§fn default() -> PaginationConfigurationBuilder
fn default() -> PaginationConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PaginationConfigurationBuilder
impl PartialEq for PaginationConfigurationBuilder
source§fn eq(&self, other: &PaginationConfigurationBuilder) -> bool
fn eq(&self, other: &PaginationConfigurationBuilder) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PaginationConfigurationBuilder
Auto Trait Implementations§
impl Freeze for PaginationConfigurationBuilder
impl RefUnwindSafe for PaginationConfigurationBuilder
impl Send for PaginationConfigurationBuilder
impl Sync for PaginationConfigurationBuilder
impl Unpin for PaginationConfigurationBuilder
impl UnwindSafe for PaginationConfigurationBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.