pub struct IndexEntry {Show 19 fields
pub id: String,
pub title: String,
pub status: Status,
pub priority: u8,
pub parent: Option<String>,
pub dependencies: Vec<String>,
pub labels: Vec<String>,
pub assignee: Option<String>,
pub updated_at: DateTime<Utc>,
pub produces: Vec<String>,
pub requires: Vec<String>,
pub has_verify: bool,
pub verify: Option<String>,
pub created_at: DateTime<Utc>,
pub claimed_by: Option<String>,
pub attempts: u32,
pub paths: Vec<String>,
pub feature: bool,
pub has_decisions: bool,
}Expand description
A lightweight summary of a single unit, stored in the index cache.
IndexEntry contains only the fields needed for list/filter/graph
operations. For the full unit with description, notes, and history,
load the unit file directly via crate::unit::Unit::from_file or
crate::api::get_unit.
Fields§
§id: String§title: String§status: Status§priority: u8§parent: Option<String>§dependencies: Vec<String>§labels: Vec<String>§assignee: Option<String>§updated_at: DateTime<Utc>§produces: Vec<String>Artifacts this unit produces (for smart dependency inference)
requires: Vec<String>Artifacts this unit requires (for smart dependency inference)
has_verify: boolWhether this unit has a verify command (SPECs have verify, GOALs don’t)
verify: Option<String>The actual verify command string (so agents don’t need bn show per-unit)
created_at: DateTime<Utc>§claimed_by: Option<String>Agent or user currently holding a claim on this unit (e.g., “spro:12345” for agent with PID)
attempts: u32Number of verify attempts so far
paths: Vec<String>File paths this unit touches (for scope-based blocking)
feature: boolWhether this unit is a feature (product-level goal, human-only close)
has_decisions: boolWhether this unit has unresolved decisions
Trait Implementations§
Source§impl Clone for IndexEntry
impl Clone for IndexEntry
Source§fn clone(&self) -> IndexEntry
fn clone(&self) -> IndexEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IndexEntry
impl Debug for IndexEntry
Source§impl<'de> Deserialize<'de> for IndexEntry
impl<'de> Deserialize<'de> for IndexEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<&Unit> for IndexEntry
impl From<&Unit> for IndexEntry
Source§fn from(unit: &Unit) -> IndexEntry
fn from(unit: &Unit) -> IndexEntry
Source§impl PartialEq for IndexEntry
impl PartialEq for IndexEntry
Source§impl Serialize for IndexEntry
impl Serialize for IndexEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for IndexEntry
Auto Trait Implementations§
impl Freeze for IndexEntry
impl RefUnwindSafe for IndexEntry
impl Send for IndexEntry
impl Sync for IndexEntry
impl Unpin for IndexEntry
impl UnsafeUnpin for IndexEntry
impl UnwindSafe for IndexEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more