extern crate alfred;

use config::Config;
use jira_api::SearchIssue;
use jira_client;
use search_response::SearchResponse;

struct SearchCommand {
    pub config: Config,
}

impl SearchCommand {
    pub fn run(&self, keyword: &String) -> Result<String, String> {
        let jira_search = SearchIssue{
            config: self.config.clone(),
            keyword: keyword.to_string(),
        };
        let issues = jira_client::send::<SearchIssue, SearchResponse>(jira_search).map_err(|e| e.to_string())?;
        Ok("".to_string())
    }
}
extern crate alfred;

use config::Config;
use issue::Issue;
use jira_api::SearchIssue;
use jira_client;

struct SearchCommand {
    pub config: Config,
}

impl SearchCommand {
    pub fn run(&self, keyword: &String) -> Result<String, String> {
        let jira_search = SearchIssue{
            config: self.config.clone(),
            keyword: keyword.to_string(),
        };
        let issues = jira_client::send::<SearchIssue, Issue>(jira_search).map_err(|e| e.to_string())?;
        Ok("".to_string())
    }
}
--- 
+++ 
@@ -1,9 +1,9 @@
 extern crate alfred;
 
 use config::Config;
+use issue::Issue;
 use jira_api::SearchIssue;
 use jira_client;
-use search_response::SearchResponse;
 
 struct SearchCommand {
     pub config: Config,
@@ -15,7 +15,7 @@
             config: self.config.clone(),
             keyword: keyword.to_string(),
         };
-        let issues = jira_client::send::<SearchIssue, SearchResponse>(jira_search).map_err(|e| e.to_string())?;
+        let issues = jira_client::send::<SearchIssue, Issue>(jira_search).map_err(|e| e.to_string())?;
         Ok("".to_string())
     }
 }
:art: Change return value to the type SearchResponse

