pub struct Comments { /* private fields */ }
Expand description
Interface for comments of a mod.
Implementations§
source§impl Comments
impl Comments
sourcepub fn search(&self, filter: Filter) -> Query<Comment>
pub fn search(&self, filter: Filter) -> Query<Comment>
Returns a Query
interface to retrieve all comments.
See Filters and sorting.
sourcepub async fn add<S>(
self,
content: S,
reply_id: Option<CommentId>
) -> Result<Comment>
pub async fn add<S>( self, content: S, reply_id: Option<CommentId> ) -> Result<Comment>
Add a new comment. [required: token]
sourcepub async fn edit<S>(self, id: CommentId, content: S) -> Result<Comment>
pub async fn edit<S>(self, id: CommentId, content: S) -> Result<Comment>
Edit a comment by id. [required: token]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Comments
impl !RefUnwindSafe for Comments
impl Send for Comments
impl Sync for Comments
impl Unpin for Comments
impl !UnwindSafe for Comments
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