19 lines
491 B
Rust
19 lines
491 B
Rust
use serde::{Deserialize, Serialize};
|
||
use serde_yaml::Mapping;
|
||
use std::collections::HashMap;
|
||
|
||
#[derive(Default, Debug, Clone, Deserialize, Serialize)]
|
||
pub struct IRuntime {
|
||
pub config: Option<Mapping>,
|
||
// 记录在配置中(包括merge和script生成的)出现过的keys
|
||
// 这些keys不一定都生效
|
||
pub exists_keys: Vec<String>,
|
||
pub chain_logs: HashMap<String, Vec<(String, String)>>,
|
||
}
|
||
|
||
impl IRuntime {
|
||
pub fn new() -> Self {
|
||
Self::default()
|
||
}
|
||
}
|