Module fmi_schema::minimal

source ·
Expand description

Minimal FMI definitions for determining FMI version.

let xml = r#"<?xml version="1.0" encoding="UTF-8"?>
    <fmiModelDescription fmiVersion="2.0" modelName="BouncingBall">
    </fmiModelDescription>"#;
let md = MinModelDescription::from_str(xml).unwrap();
let version = md.version().unwrap();
assert_eq!(version, semver::Version::new(2, 0, 0));

Structs§

  • A minimal model description that only contains the FMI version This is used to determine the FMI version of the FMU