From b58e4415bc47fece6b27ac45c613d573bd9745ba Mon Sep 17 00:00:00 2001 From: James Pine Date: Mon, 25 Nov 2024 01:35:24 -0800 Subject: [PATCH] peer --- core/src/search/mod.rs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 core/src/search/mod.rs diff --git a/core/src/search/mod.rs b/core/src/search/mod.rs new file mode 100644 index 000000000..61dca91e9 --- /dev/null +++ b/core/src/search/mod.rs @@ -0,0 +1,32 @@ +pub enum SpacedrivePath { + Location(u64, PathBuf), + Virtual(PathBuf), + NonIndexed(PathBuf), +} + +pub struct ExplorerItem { + pub id: u64, + pub pub_id: Bytes, + pub inode: Option, + // the unique Object for this item + pub object_id: Option, + // the path of this item in Spacedrive + pub path: SpacedrivePath, + + // metadata about this item + pub name: String, + pub extension: Option, + pub kind: ObjectKind, + pub size: Option, + pub date_created: Option>, + pub date_modified: Option>, + pub date_indexed: Option>, + pub is_dir: bool, + pub is_hidden: bool, + pub key_id: Option, + + // computed properties + pub thumbnail: Option, + pub has_created_thumbnail: bool, + pub duplicate_paths: Vec, +}