import.rs 370 B

123456789101112131415161718
  1. use collab_folder::core::ViewLayout;
  2. #[derive(Clone, Debug)]
  3. pub enum ImportType {
  4. HistoryDocument = 0,
  5. HistoryDatabase = 1,
  6. CSV = 2,
  7. }
  8. #[derive(Clone, Debug)]
  9. pub struct ImportParams {
  10. pub parent_view_id: String,
  11. pub name: String,
  12. pub data: Option<Vec<u8>>,
  13. pub file_path: Option<String>,
  14. pub view_layout: ViewLayout,
  15. pub import_type: ImportType,
  16. }