Skip to main content

azure_devops/pull_requests/methods/
list_reviewers.rs

1use super::super::models::IdentityRefWithVote;
2use super::super::PullRequestsClient;
3use crate::constants::ApiPath;
4use crate::error::Result;
5
6impl PullRequestsClient<'_> {
7    pub async fn list_reviewers(&self, repo: &str, id: i64) -> Result<Vec<IdentityRefWithVote>> {
8        self.http.get(&ApiPath::pr_reviewers(repo, id), &[]).await
9    }
10}