pub struct PlanRow {
pub node: NodeId,
pub item: String,
pub status: RoadmapStatus,
pub share_ppb: u64,
pub needs: Vec<NodeId>,
pub ready: bool,
pub leaf: bool,
pub evidence: Option<String>,
}Expand description
One node of a building’s plan, flattened for a renderer.
The tree travels as rows in reading order rather than as nested objects: every face the client draws — the list, the board, a branch summary — wants a different grouping, and a shape that favoured one of them would make the others re-flatten it.
Fields§
§node: NodeId§item: String§status: RoadmapStatusThis node’s share of the whole plan, in billionths.
needs: Vec<NodeId>§ready: boolWhether a run could take it right now.
leaf: boolWhether it carries work of its own. Only leaves are counted, so a renderer that showed branches in the same column as leaves would be showing the same work twice.
evidence: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlanRow
impl<'de> Deserialize<'de> for PlanRow
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
impl Eq for PlanRow
impl StructuralPartialEq for PlanRow
Auto Trait Implementations§
impl Freeze for PlanRow
impl RefUnwindSafe for PlanRow
impl Send for PlanRow
impl Sync for PlanRow
impl Unpin for PlanRow
impl UnsafeUnpin for PlanRow
impl UnwindSafe for PlanRow
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