azure_devops/builds/methods/get.rs
1use super::super::models::Build;
2use super::super::BuildsClient;
3use crate::constants::ApiPath;
4use crate::error::Result;
5
6impl BuildsClient<'_> {
7 /// Get a single build by its ID.
8 ///
9 /// # Arguments
10 ///
11 /// * `project` — The project name.
12 /// * `id` — The build ID.
13 ///
14 /// # Returns
15 ///
16 /// The [`Build`] object with full details.
17 pub async fn get(&self, project: &str, id: i64) -> Result<Build> {
18 self.http.get(&ApiPath::build(project, id), &[]).await
19 }
20}