file_struct.rs 683 B

12345678910111213141516171819202122232425262728293031
  1. // pub mod FileStruct {
  2. // pub struct Site {
  3. // pub domain: String,
  4. // pub nation: String,
  5. // }
  6. // }
  7. use std::time::Duration;
  8. #[derive(Debug)]
  9. pub struct Site {
  10. pub domain: String,
  11. pub nation: String,
  12. }
  13. // name TEXT, path TEXT, history_path TEXT, uuid TEXT, parent_id TEXT, create_time INTEGER, update_time INTEGER, file_type TEXT, user TEXT, rule TEXT
  14. #[derive(Debug)]
  15. pub struct File {
  16. pub name: String,
  17. pub path: String,
  18. pub history_path: String,
  19. pub uuid: String,
  20. pub parent_id: String,
  21. pub create_time: Duration,
  22. pub update_time: Duration,
  23. pub file_type: String,
  24. pub user: String,
  25. pub rule: String,
  26. }