Create a new change node.
(hash: impl Into<String>, state: impl Into<String>)
| 102 | impl Node { |
| 103 | /// Create a new change node. |
| 104 | pub fn change(hash: impl Into<String>, state: impl Into<String>) -> Self { |
| 105 | Self { |
| 106 | hash: hash.into(), |
| 107 | node_type: NodeType::Change, |
| 108 | state: state.into(), |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | /// Create a new tag node. |
| 113 | pub fn tag(hash: impl Into<String>, state: impl Into<String>) -> Self { |