pub struct RealAttributes {
pub quantity: Option<String>,
pub unit: Option<String>,
pub display_unit: Option<String>,
pub relative_quantity: Option<bool>,
pub min: Option<f64>,
pub max: Option<f64>,
pub nominal: Option<f64>,
pub unbounded: Option<bool>,
}
Fields§
§quantity: Option<String>
§unit: Option<String>
§display_unit: Option<String>
Default display unit, provided the conversion of values in “unit” to values in “displayUnit” is defined in UnitDefinitions / Unit / DisplayUnit.
relative_quantity: Option<bool>
If relativeQuantity=true, offset for displayUnit must be ignored.
min: Option<f64>
§max: Option<f64>
max >= min required
nominal: Option<f64>
nominal >= min and <= max required
unbounded: Option<bool>
Set to true, e.g., for crank angle. If true and variable is a state, relative tolerance should be zero on this variable.
Trait Implementations§
Source§impl Debug for RealAttributes
impl Debug for RealAttributes
Source§impl Default for RealAttributes
impl Default for RealAttributes
Source§fn default() -> RealAttributes
fn default() -> RealAttributes
Returns the “default value” for a type. Read more
Source§impl PartialEq for RealAttributes
impl PartialEq for RealAttributes
Source§impl YaDeserialize for RealAttributes
impl YaDeserialize for RealAttributes
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
Source§impl YaSerialize for RealAttributes
impl YaSerialize for RealAttributes
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace, ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl StructuralPartialEq for RealAttributes
Auto Trait Implementations§
impl Freeze for RealAttributes
impl RefUnwindSafe for RealAttributes
impl Send for RealAttributes
impl Sync for RealAttributes
impl Unpin for RealAttributes
impl UnwindSafe for RealAttributes
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