Skip to main content

azure_devops/work_items/models/structs/
work_item_field.rs

1use serde::{Deserialize, Serialize};
2
3use crate::work_items::models::{FieldType, FieldUsage, WorkItemFieldOperation};
4
5#[derive(Debug, Clone, Default, Serialize, Deserialize)]
6#[serde(rename_all = "camelCase", default)]
7pub struct WorkItemField {
8    pub name: Option<String>,
9    pub reference_name: Option<String>,
10    pub description: Option<String>,
11    pub url: Option<String>,
12    pub r#type: Option<FieldType>,
13    pub usage: Option<FieldUsage>,
14    pub read_only: bool,
15    pub can_sort_by: bool,
16    pub is_queryable: bool,
17    pub is_identity: bool,
18    pub is_picklist: bool,
19    pub is_picklist_suggested: bool,
20    pub is_deleted: bool,
21    pub picklist_id: Option<String>,
22    pub supported_operations: Option<Vec<WorkItemFieldOperation>>,
23}