diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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<String>, + pub description: Option<String>, pub priority: u32, pub word: Arc<String>, + //maybe in the future we need filetypes? } //We implement PartialEq, Eq and Hash to ignore the priority field. |