azure-devops 0.1.0

Idiomatic Rust client for Azure DevOps REST APIs
Documentation
use super::super::models::Timeline;
use super::super::BuildsClient;
use crate::constants::ApiPath;
use crate::error::Result;

impl BuildsClient<'_> {
    /// Get the timeline (step-by-step records) for a build.
    ///
    /// # Arguments
    ///
    /// * `project` — The project name.
    /// * `id` — The build ID.
    ///
    /// # Returns
    ///
    /// The [`Timeline`] with all task and phase records.
    pub async fn get_timeline(&self, project: &str, id: i64) -> Result<Timeline> {
        self.http
            .get(&ApiPath::build_timeline(project, id), &[])
            .await
    }
}