Add node 'redirect' field
This commit is contained in:
parent
8ee0ad7977
commit
800b175ec5
3 changed files with 104 additions and 9 deletions
|
|
@ -18,13 +18,16 @@ pub struct Graph {
|
|||
|
||||
#[derive(Serialize, Deserialize, Clone, Default, PartialEq, Eq, Debug)]
|
||||
pub struct Node {
|
||||
#[serde(default)]
|
||||
pub id: String,
|
||||
#[serde(default)]
|
||||
pub text: String,
|
||||
#[serde(default)]
|
||||
pub title: String,
|
||||
#[serde(default)]
|
||||
pub links: Vec<String>,
|
||||
#[serde(default)]
|
||||
pub id: String,
|
||||
pub redirect: String,
|
||||
#[serde(default)]
|
||||
pub hidden: bool,
|
||||
|
||||
|
|
@ -152,6 +155,7 @@ impl Node {
|
|||
},
|
||||
connections: None,
|
||||
links: vec![],
|
||||
redirect: String::new(),
|
||||
hidden: false,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue