Skip to main content

Paginated

Trait Paginated 

Source
pub trait Paginated: Sized {
    // Required methods
    fn next_page_token(&self) -> Option<&str>;
    fn append_page(&mut self, next: Self);
}
Expand description

Implemented by every paginated list type so ZoomClient::get_all_pages can collect results across multiple API requests transparently.

Required Methods§

Source

fn next_page_token(&self) -> Option<&str>

Returns the token for the next page, or None / empty when exhausted.

Source

fn append_page(&mut self, next: Self)

Merge next page’s items into self, discarding next’s metadata.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§