pub struct WorkItem {
pub id: Option<i64>,
pub rev: Option<i64>,
pub url: Option<String>,
pub _links: Option<Value>,
pub fields: Option<HashMap<String, Value>>,
pub relations: Option<Vec<WorkItemRelation>>,
pub comment_version_ref: Option<WorkItemCommentVersionRef>,
}Expand description
An Azure DevOps work item.
The fields map contains all work item fields keyed by reference name
(e.g., "System.Title", "System.State"). Use WorkItem::field() or
WorkItem::field_str() for convenient access.
§Example
if let Some(title) = wi.field_str("System.Title") {
println!("Title: {title}");
}Fields§
§id: Option<i64>The work item ID.
rev: Option<i64>The current revision number.
url: Option<String>The REST API URL of this work item.
_links: Option<Value>HAL-style links.
fields: Option<HashMap<String, Value>>All field values, keyed by reference name (e.g., "System.Title").
relations: Option<Vec<WorkItemRelation>>Related work items and artifacts.
comment_version_ref: Option<WorkItemCommentVersionRef>Comment version reference.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WorkItem
impl<'de> Deserialize<'de> for WorkItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WorkItem
impl RefUnwindSafe for WorkItem
impl Send for WorkItem
impl Sync for WorkItem
impl Unpin for WorkItem
impl UnsafeUnpin for WorkItem
impl UnwindSafe for WorkItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more