Skip to main content

Module item_id

Module item_id 

Source
Expand description

Validated identifier type for work items.

All work items in bones carry a bn-XXXX identifier generated by the terseid library. ItemId is a validated newtype that wraps the raw string and delegates to terseid for generation, parsing, and resolution.

Structs§

ItemId
A validated work-item identifier (e.g. bn-a7x, bn-a7x.1).

Enums§

ItemIdError
Errors that arise when constructing or resolving an ItemId.

Constants§

BONES_PREFIX
The prefix used for all bones work-item identifiers.

Functions§

bones_id_generator
Create a configured IdGenerator with the bn prefix and sensible defaults for a bones repository.
generate_item_id
Generate a new ItemId from a seed and current item count.
resolve_item_id
Resolve partial CLI input into a full ItemId.