pub struct CaptureObjectDefinition {
pub class_id: u16,
pub logical_name: ObisCode,
pub attribute_index: u8,
pub data_index: u8,
}Expand description
Capture object definition: structure { class_id, logical_name, attribute_index, data_index } per IEC 62056-6-2, 4.3.6.2.
Fields§
§class_id: u16The class id of the captured object.
logical_name: ObisCodeThe logical name (OBIS code) of the captured object.
attribute_index: u8The attribute index to capture.
data_index: u8The data index (0 for the whole attribute).
Implementations§
Trait Implementations§
Source§impl Clone for CaptureObjectDefinition
impl Clone for CaptureObjectDefinition
Source§fn clone(&self) -> CaptureObjectDefinition
fn clone(&self) -> CaptureObjectDefinition
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 CaptureObjectDefinition
impl Debug for CaptureObjectDefinition
Source§impl<'de> Deserialize<'de> for CaptureObjectDefinition
impl<'de> Deserialize<'de> for CaptureObjectDefinition
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 CaptureObjectDefinition
Source§impl From<CaptureObjectDefinition> for CosemDataType
impl From<CaptureObjectDefinition> for CosemDataType
Source§fn from(cod: CaptureObjectDefinition) -> Self
fn from(cod: CaptureObjectDefinition) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CaptureObjectDefinition
impl PartialEq for CaptureObjectDefinition
Source§impl Serialize for CaptureObjectDefinition
impl Serialize for CaptureObjectDefinition
impl StructuralPartialEq for CaptureObjectDefinition
Source§impl TryFrom<&CosemDataType> for CaptureObjectDefinition
impl TryFrom<&CosemDataType> for CaptureObjectDefinition
Auto Trait Implementations§
impl Freeze for CaptureObjectDefinition
impl RefUnwindSafe for CaptureObjectDefinition
impl Send for CaptureObjectDefinition
impl Sync for CaptureObjectDefinition
impl Unpin for CaptureObjectDefinition
impl UnsafeUnpin for CaptureObjectDefinition
impl UnwindSafe for CaptureObjectDefinition
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