use super::super::models::Build;
use super::super::BuildsClient;
use crate::constants::ApiPath;
use crate::error::Result;
impl BuildsClient<'_> {
/// Get a single build by its ID.
///
/// # Arguments
///
/// * `project` — The project name.
/// * `id` — The build ID.
///
/// # Returns
///
/// The [`Build`] object with full details.
pub async fn get(&self, project: &str, id: i64) -> Result<Build> {
self.http.get(&ApiPath::build(project, id), &[]).await
}
}