Simplify kcl_manager in Rust

MOAR JSON
This commit is contained in:
Dan Shaw
2024-05-28 20:28:04 -07:00
parent 27974dee04
commit d455189cb1

View File

@ -246,14 +246,6 @@ pub struct EngineConnectionType {
pub type_field: String,
}
#[derive(Default, Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
#[ts(export)]
#[serde(rename_all = "snake_case")]
pub struct KclManagerState {
pub ast: JValue,
pub kcl_errors: JValue,
}
#[derive(Default, Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
#[ts(export)]
#[serde(rename_all = "snake_case")]
@ -262,7 +254,7 @@ pub struct ClientState {
/// Internal state of the KclManager/KclSingleton object.
pub engine_command_manager: EngineCommandManagerState,
/// Internal state of the KclManager/KclSingleton object.
pub kcl_manager: KclManagerState,
pub kcl_manager: JValue,
/// Internal state of the SceneInfra object.
pub scene_infra: JValue,