pub struct GetForumPosts<'a> { /* private fields */ }Expand description
Get a ForumPosts struct for a forum topic
Implementations§
Source§impl<'a> GetForumPosts<'a>
impl<'a> GetForumPosts<'a>
Sourcepub fn limit(self, limit: usize) -> Self
pub fn limit(self, limit: usize) -> Self
Maximum number of posts to be returned (20 default, 50 at most)
Sourcepub const fn sort_ascending(self) -> Self
pub const fn sort_ascending(self) -> Self
Sort by ascending post ids. This is the default.
Sourcepub const fn sort_descending(self) -> Self
pub const fn sort_descending(self) -> Self
Sort by descending post ids
Sourcepub const fn start_id(self, start: u64) -> Self
pub const fn start_id(self, start: u64) -> Self
First post id to be returned if sorted ascendingly.
Parameter is ignored if cursor is specified.
Trait Implementations§
Source§impl IntoFuture for GetForumPosts<'_>
impl IntoFuture for GetForumPosts<'_>
Source§type Output = Result<ForumPosts, OsuError>
type Output = Result<ForumPosts, OsuError>
The output that the future will produce on completion.
Source§type IntoFuture = OsuFuture<GetForumPosts<'_>>
type IntoFuture = OsuFuture<GetForumPosts<'_>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for GetForumPosts<'a>
impl<'a> !RefUnwindSafe for GetForumPosts<'a>
impl<'a> Send for GetForumPosts<'a>
impl<'a> Sync for GetForumPosts<'a>
impl<'a> Unpin for GetForumPosts<'a>
impl<'a> !UnwindSafe for GetForumPosts<'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