mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-09-29 10:23:09 +00:00
16 lines
309 B
Rust
16 lines
309 B
Rust
![]() |
use crate::core::NodeAttributes;
|
||
|
|
||
|
pub struct NodeData {
|
||
|
pub node_type: String,
|
||
|
pub attributes: NodeAttributes,
|
||
|
}
|
||
|
|
||
|
impl NodeData {
|
||
|
pub fn new(node_type: &str) -> NodeData {
|
||
|
NodeData {
|
||
|
node_type: node_type.into(),
|
||
|
attributes: NodeAttributes::new(),
|
||
|
}
|
||
|
}
|
||
|
}
|