Skip to main content

azure_devops/builds/methods/
get_timeline.rs

1use super::super::models::Timeline;
2use super::super::BuildsClient;
3use crate::constants::ApiPath;
4use crate::error::Result;
5
6impl BuildsClient<'_> {
7    /// Get the timeline (step-by-step records) for a build.
8    ///
9    /// # Arguments
10    ///
11    /// * `project` — The project name.
12    /// * `id` — The build ID.
13    ///
14    /// # Returns
15    ///
16    /// The [`Timeline`] with all task and phase records.
17    pub async fn get_timeline(&self, project: &str, id: i64) -> Result<Timeline> {
18        self.http
19            .get(&ApiPath::build_timeline(project, id), &[])
20            .await
21    }
22}