From 4721da1679a563dc686dbfe61f7fdf7ef537556d Mon Sep 17 00:00:00 2001 From: Quentin de Quelen Date: Thu, 14 Feb 2019 15:44:11 +0100 Subject: [PATCH] feat: Add access key on config --- src/database/config.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/database/config.rs b/src/database/config.rs index ba6fd1d0a..653ef1878 100644 --- a/src/database/config.rs +++ b/src/database/config.rs @@ -8,12 +8,20 @@ pub enum RankingOrdering { Dsc } +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +pub struct AccessToken { + pub token: String, + pub secret_key: String, +} + + #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct Config { pub stop_words: Option>, pub ranking_order: Option>, pub distinct_field: Option, pub ranking_rules: Option>, + pub access_token: Option, } @@ -24,6 +32,7 @@ impl Config { ranking_order: None, distinct_field: None, ranking_rules: None, + access_token: None, } } }