Skip to main content

CustomValidationHandler

Type Alias CustomValidationHandler 

Source
pub type CustomValidationHandler = Arc<dyn Fn(&Model) -> Result<(), String> + Send + Sync>;
Expand description

Callback function for custom extension validation

This callback is invoked during model validation to allow custom validation rules for custom extensions.

§Arguments

  • model - The parsed 3MF model

§Returns

  • Ok(()) - Validation passed
  • Err(error_message) - Validation failed with an error message

Aliased Type§

pub struct CustomValidationHandler { /* private fields */ }