pub fn import_model(
input: &Path,
format: Option<&str>,
verbose: bool,
) -> Result<ImportResult, String>Expand description
Import and validate a model from an interchange format (legacy version).
This validates the model but doesn’t load it into a workspace.
For importing into a workspace, use import_model_into_host().
§Arguments
input- Path to the model fileformat- Optional format override (xmi, kpar, jsonld)verbose- Enable verbose output
§Returns
An ImportResult with element count and validation info.