#[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
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PaginationConfigurationBuilder
Auto Trait Implementations§
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> 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>
Creates a shared type from an unshared type.