pub struct GetComments<'a> { /* private fields */ }Expand description
Get a list of comments and their replies up to two levels deep in form of a
CommentBundle.
Implementations§
Source§impl<'a> GetComments<'a>
impl<'a> GetComments<'a>
Sourcepub const fn parent(self, parent_id: u32) -> Self
pub const fn parent(self, parent_id: u32) -> Self
Limit to comments which are reply to the specified id. Specify 0 to get top level comments
Sourcepub const fn commentable_id(self, commentable_id: u32) -> Self
pub const fn commentable_id(self, commentable_id: u32) -> Self
The id of the resource to get comments for
Sourcepub fn commentable_type(self, commentable_type: impl Into<String>) -> Self
pub fn commentable_type(self, commentable_type: impl Into<String>) -> Self
The type of resource to get comments for
Trait Implementations§
Source§impl IntoFuture for GetComments<'_>
impl IntoFuture for GetComments<'_>
Source§type Output = Result<CommentBundle, OsuError>
type Output = Result<CommentBundle, OsuError>
The output that the future will produce on completion.
Source§type IntoFuture = OsuFuture<GetComments<'_>>
type IntoFuture = OsuFuture<GetComments<'_>>
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 GetComments<'a>
impl<'a> !RefUnwindSafe for GetComments<'a>
impl<'a> Send for GetComments<'a>
impl<'a> Sync for GetComments<'a>
impl<'a> Unpin for GetComments<'a>
impl<'a> !UnwindSafe for GetComments<'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