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
use super::super::models::WorkItemField;
use super::super::WorkItemsClient;
use crate::constants::ApiPath;
use crate::error::Result;

impl WorkItemsClient<'_> {
    /// List all work item fields across the organization.
    ///
    /// # Returns
    ///
    /// A `Vec<WorkItemField>` describing every available work item field.
    pub async fn get_fields(&self) -> Result<Vec<WorkItemField>> {
        let p = ApiPath::fields();
        self.http.get(&p, &[]).await
    }
}