pub struct Page {
pub data: Vec<Response>,
pub has_more: bool,
pub next_cursor: Option<String>,
}Expand description
One page of a list result.
To walk every page, pass Page::next_cursor back as the after parameter
of the next call, or use the resource’s list_all helper to collect them
all.
Fields§
§data: Vec<Response>The items on this page.
has_more: boolWhether another page exists.
next_cursor: Option<String>The cursor for the next page, or None when has_more is false.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnsafeUnpin for Page
impl UnwindSafe for Page
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