pub struct PagedRequest<'a, T> { /* private fields */ }Expand description
A request that supports automatic pagination via the Link header.
This is used to fetch multiple pages of results (e.g., historical timelines) by following the “next” link provided by the server.
Implementations§
Source§impl<'a, T: DeserializeOwned> PagedRequest<'a, T>
impl<'a, T: DeserializeOwned> PagedRequest<'a, T>
Sourcepub fn new(client: &'a MastodonClient, initial_url: String) -> Self
pub fn new(client: &'a MastodonClient, initial_url: String) -> Self
Creates a new PagedRequest starting at the given URL.
Auto Trait Implementations§
impl<'a, T> Freeze for PagedRequest<'a, T>
impl<'a, T> !RefUnwindSafe for PagedRequest<'a, T>
impl<'a, T> Send for PagedRequest<'a, T>where
T: Send,
impl<'a, T> Sync for PagedRequest<'a, T>where
T: Sync,
impl<'a, T> Unpin for PagedRequest<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for PagedRequest<'a, T>
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