Make tree serde-serializable

This commit is contained in:
Rahix 2025-05-30 21:48:07 +02:00
parent 92e8ea066f
commit 1f889245af
3 changed files with 4 additions and 1 deletions

View file

@ -113,8 +113,10 @@ impl std::fmt::Display for ElementStatus {
pub type ElementIndex = petgraph::graph::NodeIndex;
#[derive(serde::Serialize)]
pub struct Tree {
graph: petgraph::Graph<Element, ()>,
#[serde(skip)]
issue_map: BTreeMap<u64, ElementIndex>,
}