pub struct TimelinesHandler<'a> { /* private fields */ }Expand description
Handler for timeline-related API endpoints.
Implementations§
Source§impl<'a> TimelinesHandler<'a>
impl<'a> TimelinesHandler<'a>
pub fn new(client: &'a MastodonClient) -> Self
Sourcepub async fn public(&self) -> Result<Vec<Status>>
pub async fn public(&self) -> Result<Vec<Status>>
Fetches the public timeline.
Corresponds to GET /api/v1/timelines/public.
Sourcepub async fn public_paged(&self) -> Result<PagedRequest<'_, Status>>
pub async fn public_paged(&self) -> Result<PagedRequest<'_, Status>>
Returns a paged request for the public timeline.
This allows for iterating through the timeline page-by-page.
Auto Trait Implementations§
impl<'a> Freeze for TimelinesHandler<'a>
impl<'a> !RefUnwindSafe for TimelinesHandler<'a>
impl<'a> Send for TimelinesHandler<'a>
impl<'a> Sync for TimelinesHandler<'a>
impl<'a> Unpin for TimelinesHandler<'a>
impl<'a> !UnwindSafe for TimelinesHandler<'a>
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