tci/src/config.rs

34 lines
590 B
Rust
Raw Normal View History

2024-02-14 20:06:49 +01:00
#[derive(Debug, Default, serde::Deserialize)]
pub struct TciServerConfig {
#[serde(default)]
pub allow_all: bool,
#[serde(default)]
pub run_setup_even_if_not_allowed: bool,
#[serde(default)]
pub branch: Option<String>,
#[serde(default)]
pub setup: Vec<String>,
#[serde(default)]
pub cleanup: Vec<String>,
}
#[derive(Debug, Default, serde::Deserialize)]
pub struct TciScriptConfig {
#[serde(default)]
pub branch: Option<String>,
#[serde(default)]
pub filter: Option<String>,
#[serde(default)]
pub commands: Vec<String>,
// #[serde(default)]
// concurrent: bool,
}