7 lines
195 B
Rust
7 lines
195 B
Rust
use serde_json::Value;
|
|
|
|
use rrt_runtime::RuntimeState;
|
|
|
|
pub fn normalize_runtime_state(state: &RuntimeState) -> Result<Value, Box<dyn std::error::Error>> {
|
|
Ok(serde_json::to_value(state)?)
|
|
}
|