fix: 添加Serde序列化支持以修复Tauri IPC错误

- 为 comfyui_sdk::ValidationResult 和 ValidationError 添加序列化支持
- 为 ConfigStats 和 Environment 类型添加序列化支持
- 为 ExecutionStats、MonitorStats、CacheStats 添加序列化支持
- 修复 Tauri 命令返回类型不满足 IpcResponse trait 的问题
This commit is contained in:
imeepos
2025-08-08 15:02:41 +08:00
parent 8223061aea
commit eb81f106dd
4 changed files with 5 additions and 5 deletions

View File

@@ -444,7 +444,7 @@ impl RealtimeMonitor {
}
/// 监控统计信息
#[derive(Debug, Clone)]
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct MonitorStats {
pub is_running: bool,
pub websocket_connected: bool,