1
use std::collections::BTreeMap;
2

            
3
use serde::Deserialize;
4

            
5
use crate::data_format::ReviewType;
6

            
7
#[derive(Deserialize, Clone)]
8
pub struct Reviewer {
9
    pub name: String,
10
    pub email: String,
11
}
12

            
13
72
#[derive(Deserialize, Clone)]
14
pub struct Config {
15
    // the organizations that do the selection of requests
16
    pub selectors: Vec<String>,
17
    pub review_types: BTreeMap<String, ReviewType>,
18
    // run in a mode that can hand out JWT tokens itself
19
    #[serde(default)]
20
    pub test_mode: bool,
21
    // hosts from which this service can be used
22
    #[serde(default)]
23
    pub allowed_origins: Vec<String>,
24
}