Skip to main content

azure_devops/work_items/methods/
get_fields.rs

1use super::super::models::WorkItemField;
2use super::super::WorkItemsClient;
3use crate::constants::ApiPath;
4use crate::error::Result;
5
6impl WorkItemsClient<'_> {
7    /// List all work item fields across the organization.
8    ///
9    /// # Returns
10    ///
11    /// A `Vec<WorkItemField>` describing every available work item field.
12    pub async fn get_fields(&self) -> Result<Vec<WorkItemField>> {
13        let p = ApiPath::fields();
14        self.http.get(&p, &[]).await
15    }
16}