Skip to main content

azure_devops/builds/methods/
get_artifact.rs

1use super::super::models::BuildArtifact;
2use super::super::BuildsClient;
3use crate::constants::ApiPath;
4use crate::error::Result;
5
6impl BuildsClient<'_> {
7    pub async fn get_artifact(&self, project: &str, id: i64, name: &str) -> Result<BuildArtifact> {
8        self.http
9            .get(&ApiPath::build_artifact(project, id, name), &[])
10            .await
11    }
12}