pub struct EngineeringUnit {
pub namespace_uri: String,
pub unit_id: i32,
}Expand description
A programmatic OPC UA engineering unit, identified by its authority and signed ID.
Localized display names and descriptions do not participate in comparisons. See Part 8, EUInformation.
Fields§
§namespace_uri: StringCase-sensitive namespace URI for the organization defining the unit.
unit_id: i32Identifier assigned by that organization. A server can report -1 for an unknown unit.
Implementations§
Source§impl EngineeringUnit
impl EngineeringUnit
Sourcepub fn is_identified(&self) -> bool
pub fn is_identified(&self) -> bool
Whether the server supplied both parts of a usable programmatic identity.
Sourcepub fn is_watt_hour(&self) -> bool
pub fn is_watt_hour(&self) -> bool
Whether this is the UN/CEFACT watt-hour unit (common code WHR).
Trait Implementations§
Source§impl Clone for EngineeringUnit
impl Clone for EngineeringUnit
Source§impl Debug for EngineeringUnit
impl Debug for EngineeringUnit
Source§impl<'de> Deserialize<'de> for EngineeringUnit
impl<'de> Deserialize<'de> for EngineeringUnit
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 EngineeringUnit
Source§impl PartialEq for EngineeringUnit
impl PartialEq for EngineeringUnit
Source§impl Serialize for EngineeringUnit
impl Serialize for EngineeringUnit
impl StructuralPartialEq for EngineeringUnit
Auto Trait Implementations§
impl Forget for EngineeringUnit
impl Freeze for EngineeringUnit
impl Move for EngineeringUnit
impl RefUnwindSafe for EngineeringUnit
impl Send for EngineeringUnit
impl Sync for EngineeringUnit
impl Unpin for EngineeringUnit
impl UnsafeUnpin for EngineeringUnit
impl UnwindSafe for EngineeringUnit
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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