pub struct Pagination { /* private fields */ }Expand description
Pagination information for the request.
Implementations§
Source§impl Pagination
impl Pagination
Sourcepub fn new(
max_results: Option<u32>,
page_token: Option<String>,
is_start: bool,
) -> Self
pub fn new( max_results: Option<u32>, page_token: Option<String>, is_start: bool, ) -> Self
Create a new Pagination
Sourcepub fn start(max_results: Option<u32>, page_token: Option<String>) -> Self
pub fn start(max_results: Option<u32>, page_token: Option<String>) -> Self
Create a new Pagination for the first page
Sourcepub fn set_next_token(&mut self, token: Option<String>)
pub fn set_next_token(&mut self, token: Option<String>)
Set the next page token
Sourcepub fn has_next_page(&self) -> bool
pub fn has_next_page(&self) -> bool
Check if there is another page of results
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Check if the pagination is finished
Trait Implementations§
Source§impl Debug for Pagination
impl Debug for Pagination
Auto Trait Implementations§
impl Freeze for Pagination
impl RefUnwindSafe for Pagination
impl Send for Pagination
impl Sync for Pagination
impl Unpin for Pagination
impl UnwindSafe for Pagination
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