pub struct MinModelDescription {
pub fmi_version: String,
pub model_name: String,
}
Expand description
A minimal model description that only contains the FMI version This is used to determine the FMI version of the FMU
Fields§
§fmi_version: String
§model_name: String
Trait Implementations§
Source§impl Debug for MinModelDescription
impl Debug for MinModelDescription
Source§impl Default for MinModelDescription
impl Default for MinModelDescription
Source§fn default() -> MinModelDescription
fn default() -> MinModelDescription
Returns the “default value” for a type. Read more
Source§impl FmiModelDescription for MinModelDescription
impl FmiModelDescription for MinModelDescription
Source§fn model_name(&self) -> &str
fn model_name(&self) -> &str
Returns the model name
Source§fn version_string(&self) -> &str
fn version_string(&self) -> &str
Returns the FMI version as a string
Source§fn version(&self) -> Result<Version, Error>
fn version(&self) -> Result<Version, Error>
Returns the parsed FMI version as a semver::Version
Source§fn major_version(&self) -> Result<MajorVersion, Error>
fn major_version(&self) -> Result<MajorVersion, Error>
Returns the parsed FMI version as a MajorVersion
Source§impl FromStr for MinModelDescription
impl FromStr for MinModelDescription
Source§impl PartialEq for MinModelDescription
impl PartialEq for MinModelDescription
Source§impl YaDeserialize for MinModelDescription
impl YaDeserialize for MinModelDescription
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
impl StructuralPartialEq for MinModelDescription
Auto Trait Implementations§
impl Freeze for MinModelDescription
impl RefUnwindSafe for MinModelDescription
impl Send for MinModelDescription
impl Sync for MinModelDescription
impl Unpin for MinModelDescription
impl UnwindSafe for MinModelDescription
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more