azure_devops/pull_requests/methods/get_by_id.rs
1use super::super::models::GitPullRequest;
2use super::super::PullRequestsClient;
3use crate::constants::ApiPath;
4use crate::error::Result;
5
6impl PullRequestsClient<'_> {
7 pub async fn get_by_id(&self, id: i64) -> Result<GitPullRequest> {
8 self.http.get(&ApiPath::pr_by_id(id), &[]).await
9 }
10}