fix: comfyui sdk serde

This commit is contained in:
imeepos 2025-08-08 15:03:35 +08:00
parent eb81f106dd
commit d61e2e8f4c
1 changed files with 2 additions and 2 deletions

View File

@ -129,14 +129,14 @@ pub enum VariableSyntax {
} }
/// Template validation result /// Template validation result
#[derive(Debug, Clone)] #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct ValidationResult { pub struct ValidationResult {
pub valid: bool, pub valid: bool,
pub errors: Vec<ValidationError>, pub errors: Vec<ValidationError>,
} }
/// Validation error /// Validation error
#[derive(Debug, Clone)] #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct ValidationError { pub struct ValidationError {
pub path: String, pub path: String,
pub message: String, pub message: String,