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, +}