pub struct RoomWork {
pub open: Option<i32>,
pub room: Option<String>,
pub status: Option<HashMap<String, i32>>,
pub total: Option<i32>,
pub updated: Option<i32>,
}Fields§
§open: Option<i32>Open is how many items are still work: everything whose status does not end it. It is the number a channel header shows.
room: Option<String>Room is the room these counts are for, echoed back as it was resolved.
status: Option<HashMap<String, i32>>Status is the count per board column, carrying EVERY column this surface knows — an empty column reads 0 rather than being absent, so a caller can render the board without inventing the vocabulary. The keys are the same closed set every other operation here validates against.
total: Option<i32>Total is every item bound to this room, settled ones included, so Total minus Open is what the room has finished.
updated: Option<i32>Updated is when anything in this room’s work last moved, in unix seconds. ABSENT when the room has no work at all: zero would read as the epoch, and a room nobody has filed anything in has no last activity rather than an infinitely old one. Total is 0 in exactly that case.