summaryrefslogtreecommitdiffstats
path: root/src/stackexchange/search.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stackexchange/search.rs')
-rw-r--r--src/stackexchange/search.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/stackexchange/search.rs b/src/stackexchange/search.rs
index 1357c80..d705867 100644
--- a/src/stackexchange/search.rs
+++ b/src/stackexchange/search.rs
@@ -26,10 +26,10 @@ const USER_AGENT: &str =
// TODO this really needs a better name...
#[derive(Clone)]
pub struct Search {
- api: Api,
- config: Config,
- query: String,
- sites: HashMap<String, String>,
+ pub api: Api,
+ pub config: Config,
+ pub query: String,
+ pub sites: HashMap<String, String>,
}
impl Search {
@@ -190,6 +190,7 @@ fn parse_markdown(qs: Vec<Question<String>>) -> Vec<Question<Markdown>> {
id: q.id,
score: q.score,
title: q.title,
+ site: q.site,
}
})
.collect::<Vec<_>>()