Lines
50 %
Functions
6.25 %
Branches
100 %
use std::collections::BTreeMap;
use serde::Deserialize;
use crate::data_format::ReviewType;
#[derive(Deserialize, Clone)]
pub struct Reviewer {
pub name: String,
pub email: String,
}
pub struct Config {
// the organizations that do the selection of requests
pub selectors: Vec<String>,
pub review_types: BTreeMap<String, ReviewType>,
// run in a mode that can hand out JWT tokens itself
#[serde(default)]
pub test_mode: bool,
// hosts from which this service can be used
pub allowed_origins: Vec<String>,