Make tree serde-serializable
This commit is contained in:
parent
92e8ea066f
commit
1f889245af
3 changed files with 4 additions and 1 deletions
|
@ -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>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue