summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index d2f0c3a..e6ca3ef 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,6 +3,7 @@ use config::SETTINGS;
3use error::CliError; 3use error::CliError;
4use requests::{start::start, get::get}; 4use requests::{start::start, get::get};
5use reqwest::header::{HeaderMap, HeaderValue}; 5use reqwest::header::{HeaderMap, HeaderValue};
6use serde::Deserialize;
6 7
7mod config; 8mod config;
8mod error; 9mod error;
@@ -58,3 +59,8 @@ fn default_headers() -> Result<HeaderMap, CliError> {
58 Ok(map) 59 Ok(map)
59 60
60} 61}
62
63#[derive(Debug, Deserialize)]
64struct ErrorResponse {
65 error: String
66}