azure-devops 0.1.0

Idiomatic Rust client for Azure DevOps REST APIs
Documentation
use super::super::PullRequestsClient;
use crate::constants::ApiPath;
use crate::error::Result;
use serde_json;

impl PullRequestsClient<'_> {
    pub async fn delete_comment(
        &self,
        repo: &str,
        pr: i64,
        thread: i64,
        comment: i64,
    ) -> Result<()> {
        self.http
            .delete::<serde_json::Value>(&ApiPath::pr_comment(repo, pr, thread, comment), &[])
            .await
            .map(|_| ())
    }
}