Generic work item abstraction types
| Tier | operations |
| Role | unclassified (baselined) |
| Path | crates/operations/workitem |
| Edition | 2021 |
| Targets | operations_workitem |
| Public items | 0 across 0 modules |
| Tests | 13 |
What it is for
Library crates for generic work item abstractions.
Provides types for unified work item tracking across different contexts:
- Support tickets
- Incidents
- Projects
- Audits
- Maintenance tasks
# Example
use operations_workitem::{WorkItemType, WorkItemPriority};
let work_type = WorkItemType::Support;
assert_eq!(work_type.to_string(), "support");
let priority = WorkItemPriority::High;
assert!(priority > WorkItemPriority::Normal);
Capabilities
No public items.
How to use it
From this crate's own rustdoc:
use operations_workitem::{WorkItemType, WorkItemPriority};
let work_type = WorkItemType::Support;
assert_eq!(work_type.to_string(), "support");
let priority = WorkItemPriority::High;
assert!(priority > WorkItemPriority::Normal);
Module structure
No public modules: the crate root is its whole surface.
Public surface
No public items.
Re-exports. Exported here, defined elsewhere.
| Export | Defined in |
|---|---|
WorkItemPriority | priority::WorkItemPriority |
WorkItemType | work_type::WorkItemType |
{PriorityCount,StateCount,TypeCount,WorkItemStats} | stats::{PriorityCount,StateCount,TypeCount,WorkItemStats} |
Boundary
Depends on no other workspace tier.
Shares tier operations with 40 other crates: operations-approval-workflow, operations-assessments, operations-block-imaging, operations-boot-media, operations-browser-agent-worker, operations-camera-discovery, operations-camera-liveview, operations-camera-registry, … (40 total).
_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._
Where it sits
| Tier (ontology) | operations |
| Architectural role (taxonomy) | unclassified (baselined) |
| Location | crates/operations/workitem |
| Vocabulary in force (lexicon) | current |
Dependencies
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
serde | ^1 | derive | no | always |
Development, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
serde_json | ^1 | — | no | always |
Build. None.
Depended on by. 1 workspace crate.
Signal flow — what reaches this crate, and what it reaches.
flowchart LR n_application_workitem["application-workitem"] -->|uses| SELF SELF["operations-workitem"] classDef self fill:#1f883d,stroke:#1f883d,color:#fff; class SELF self;
Feature flags
No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.
Targets
| Kind | Name | Source |
|---|---|---|
| lib | operations_workitem | `src/lib.rs` |
Error model
No public error type was detected: no public item declares a type named *Error, and no public signature returns one.
Operational characteristics
| Property | Evidence |
|---|---|
| async public surface | none detected |
| async runtime | none detected |
| database access | none detected |
| network I/O | none detected |
| unsafe code | none detected |
| environment variables | none detected |
No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.
Configuration
No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.
Related capabilities
1 workspace crate depends on this one: application-workitem.
Verification
| Kind | Count |
|---|---|
| Unit tests | 13 |
| Integration tests | 0 |
| Examples | 0 |
| Doctests | 1 |
What the tests establish, by name:
test_default—src/priority.rstest_is_elevated—src/priority.rstest_ordering—src/priority.rstest_roundtrip—src/priority.rstest_serde—src/priority.rstest_weight—src/priority.rstest_empty_stats—src/stats.rstest_serde—src/stats.rstest_stats_counts—src/stats.rstest_default—src/work_type.rstest_encounter_type_mapping—src/work_type.rstest_roundtrip—src/work_type.rstest_serde—src/work_type.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 0 | 0 |
Public modules with a //! block | 0 | 0 |
Metrics
| Metric | Value |
|---|---|
| Rust source files | 4 |
| Source lines | 469 |
| Code lines | 349 |
| Public API items | 0 |
| Public modules | 0 |
| Tests | 13 |
| Examples | 0 |
| Cargo features | 0 |
| Direct runtime dependencies | 1 |
| Workspace reverse dependencies | 1 |
pie showData
title Rust source composition
"Code" : 349
"Blank or comment" : 120
Generation
Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.