mirror of
https://git.alemi.dev/tci.git
synced 2024-11-23 16:44:48 +01:00
34 lines
590 B
Rust
34 lines
590 B
Rust
|
|
||
|
|
||
|
#[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,
|
||
|
}
|