pub struct CommentsManager { /* private fields */ }Expand description
Operations for the “comments” API area.
Implementations§
Source§impl CommentsManager
impl CommentsManager
Sourcepub fn list_file(
&self,
file_id: String,
opts: Option<CommentsListFileOptions>,
) -> CommentsListFilePaginator
pub fn list_file( &self, file_id: String, opts: Option<CommentsListFileOptions>, ) -> CommentsListFilePaginator
Iterate every crate::models::schemas::CommentFull across pages, threading the cursor.
pub async fn get( &self, comment_id: String, opts: Option<CommentsGetOptions>, ) -> Result<CommentFull, Error>
pub async fn update( &self, comment_id: String, body: CommentUpdateRequest, opts: Option<CommentsUpdateOptions>, ) -> Result<CommentFull, Error>
pub async fn delete(&self, comment_id: String) -> Result<(), Error>
pub async fn create( &self, body: CommentCreateRequest, opts: Option<CommentsCreateOptions>, ) -> Result<CommentFull, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for CommentsManager
impl !UnwindSafe for CommentsManager
impl Freeze for CommentsManager
impl Send for CommentsManager
impl Sync for CommentsManager
impl Unpin for CommentsManager
impl UnsafeUnpin for CommentsManager
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