azure-devops 0.1.0

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

impl PullRequestsClient<'_> {
    pub async fn add_reviewer(
        &self,
        repo: &str,
        id: i64,
        reviewer_id: &str,
    ) -> Result<IdentityRefWithVote> {
        let empty = serde_json::Value::Null;
        self.http
            .put(&ApiPath::pr_reviewer(repo, id, reviewer_id), &[], &empty)
            .await
    }
}