diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-11-02 21:39:32 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-11-02 21:39:32 +0100 |
commit | ab126ea4df01af6ca7da2118740fca8ffd22ac37 (patch) | |
tree | 7ce8fbfa8a1ee8bf7de7a4a7e50cb2c8a132f076 /lib/src/lib.rs | |
parent | Indexer: Abstract indexer (diff) | |
download | OSSE-ab126ea4df01af6ca7da2118740fca8ffd22ac37.tar.gz OSSE-ab126ea4df01af6ca7da2118740fca8ffd22ac37.tar.bz2 OSSE-ab126ea4df01af6ca7da2118740fca8ffd22ac37.zip |
Lib+Indexer: Make IndexedResource title and description Optional
Diffstat (limited to '')
-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. |