summaryrefslogtreecommitdiffstats
path: root/src/config/configuration.rs
blob: 162115b2ec474ddd64be90383af21c9f14e551bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use std::collections::BTreeMap;
use std::ops::Deref;
use std::path::PathBuf;

use anyhow::Context;
use anyhow::Result;
use handlebars::Handlebars;

use crate::config::NotValidatedConfiguration;

#[derive(Debug)]
pub struct Configuration {
    pub (in crate::config) inner: NotValidatedConfiguration,
}

impl Deref for Configuration {
    type Target = NotValidatedConfiguration;

    fn deref(&self) -> &Self::Target {
        &self.inner
    }
}