azure_devops/pipelines/methods/list_runs.rs
1use super::super::models::Run;
2use super::super::PipelinesClient;
3use crate::constants::ApiPath;
4use crate::error::Result;
5
6impl PipelinesClient<'_> {
7 pub async fn list_runs(&self, project: &str, id: i64) -> Result<Vec<Run>> {
8 self.http
9 .get(&ApiPath::pipeline_runs(project, id), &[])
10 .await
11 }
12}