trash_node.rs 554 B

1234567891011121314151617181920
  1. use crate::client_folder::util::*;
  2. use crate::client_folder::AtomicNodeTree;
  3. use flowy_derive::Node;
  4. use lib_ot::core::*;
  5. use std::sync::Arc;
  6. #[derive(Clone, Node)]
  7. #[node_type = "trash"]
  8. pub struct TrashNode {
  9. pub tree: Arc<AtomicNodeTree>,
  10. pub node_id: Option<NodeId>,
  11. #[node(get_value_with = "get_attributes_str_value")]
  12. #[node(set_value_with = "set_attributes_str_value")]
  13. pub id: String,
  14. #[node(get_value_with = "get_attributes_str_value")]
  15. #[node(set_value_with = "set_attributes_str_value")]
  16. pub name: String,
  17. }