pub struct ScalerUnit {
pub scaler: i8,
pub unit: u8,
}Expand description
ScalerUnit: structure { scaler: integer, unit: enum } per IEC 62056-6-2, Table 41.
Fields§
§scaler: i8The scaler (power of 10): value = raw × 10^scaler.
unit: u8The unit code per IEC 62056-6-2, Table 42.
Implementations§
Trait Implementations§
Source§impl Clone for ScalerUnit
impl Clone for ScalerUnit
Source§fn clone(&self) -> ScalerUnit
fn clone(&self) -> ScalerUnit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScalerUnit
impl Debug for ScalerUnit
Source§impl<'de> Deserialize<'de> for ScalerUnit
impl<'de> Deserialize<'de> for ScalerUnit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScalerUnit
Source§impl From<ScalerUnit> for CosemDataType
impl From<ScalerUnit> for CosemDataType
Source§fn from(su: ScalerUnit) -> Self
fn from(su: ScalerUnit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScalerUnit
impl PartialEq for ScalerUnit
Source§impl Serialize for ScalerUnit
impl Serialize for ScalerUnit
impl StructuralPartialEq for ScalerUnit
Source§impl TryFrom<&CosemDataType> for ScalerUnit
impl TryFrom<&CosemDataType> for ScalerUnit
Auto Trait Implementations§
impl Freeze for ScalerUnit
impl RefUnwindSafe for ScalerUnit
impl Send for ScalerUnit
impl Sync for ScalerUnit
impl Unpin for ScalerUnit
impl UnsafeUnpin for ScalerUnit
impl UnwindSafe for ScalerUnit
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