/** * This module contains all the defined structures which will process the UrCI * configuration file */ #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Config { pub projects: Vec, pub agents: Vec, pub handlers: Vec, } #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Project { name: String, trigger: Trigger, handler: String, scm: Scm, } #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Trigger { cron: Option, } #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Scm { git: Option, r#ref: Option, } #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Agent { } #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Handler { }