azure-devops 0.1.0

Idiomatic Rust client for Azure DevOps REST APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::super::models::PipelineArtifact;
use super::super::PipelinesClient;
use crate::constants::ApiPath;
use crate::error::Result;

impl PipelinesClient<'_> {
    pub async fn get_artifact(
        &self,
        project: &str,
        pid: i64,
        rid: i64,
        name: &str,
    ) -> Result<PipelineArtifact> {
        self.http
            .get(&ApiPath::pipeline_artifact(project, pid, rid, name), &[])
            .await
    }
}