From ab126ea4df01af6ca7da2118740fca8ffd22ac37 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Wed, 2 Nov 2022 21:39:32 +0100 Subject: Lib+Indexer: Make IndexedResource title and description Optional --- lib/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 8a006f6..48bf92b 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -14,10 +14,11 @@ pub mod lib { #[derive(Debug, Clone, Serialize, Deserialize)] pub struct IndexedResource { pub url: String, - pub title: String, - pub description: String, + pub title: Option, + pub description: Option, pub priority: u32, pub word: Arc, + //maybe in the future we need filetypes? } //We implement PartialEq, Eq and Hash to ignore the priority field. -- cgit 1.4.1