about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-11-02 21:39:32 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-11-02 21:39:32 +0100
commitab126ea4df01af6ca7da2118740fca8ffd22ac37 (patch)
tree7ce8fbfa8a1ee8bf7de7a4a7e50cb2c8a132f076 /lib
parentIndexer: Abstract indexer (diff)
downloadOSSE-ab126ea4df01af6ca7da2118740fca8ffd22ac37.tar.gz
OSSE-ab126ea4df01af6ca7da2118740fca8ffd22ac37.tar.bz2
OSSE-ab126ea4df01af6ca7da2118740fca8ffd22ac37.zip
Lib+Indexer: Make IndexedResource title and description Optional
Diffstat (limited to 'lib')
-rw-r--r--lib/src/lib.rs5
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.