aboutsummaryrefslogtreecommitdiff
path: root/src/signalboost.rs
blob: 6adfc8fa9f18b4fd915ba587aba840e5e9b5cba2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use serde::Deserialize;

#[derive(Clone, Debug, Deserialize)]
pub struct Person {
    pub name: String,
    pub tags: Vec<String>,
    #[serde(rename = "gitLink")]
    pub git_link: Option<String>,
    pub twitter: Option<String>,
    pub linkedin: Option<String>,
    pub fediverse: Option<String>,
    #[serde(rename = "coverLetter")]
    pub cover_letter: Option<String>,
    pub website: Option<String>,
}

#[cfg(test)]
mod tests {
    use color_eyre::eyre::Result;
    #[test]
    fn load() -> Result<()> {
        let _people: Vec<super::Person> =
            serde_dhall::from_file("./dhall/signalboost.dhall").parse()?;

        Ok(())
    }
}