azure_devops/repositories/methods/list_branches.rs
1use super::super::models::GitBranchStats;
2use super::super::RepositoriesClient;
3use crate::constants::ApiPath;
4use crate::error::Result;
5
6impl RepositoriesClient<'_> {
7 pub async fn list_branches(&self, id: &str) -> Result<Vec<GitBranchStats>> {
8 self.http.get(&ApiPath::repository_branches(id), &[]).await
9 }
10}