pub struct ProtectionObject {
pub class_id: u16,
pub logical_name: ObisCode,
pub attribute_index: i8,
}Expand description
protection_object — structure { class_id, logical_name, attribute_index }
Used in Data Protection and Security Setup.
Fields§
§class_id: u16COSEM class identifier.
logical_name: ObisCodeOBIS logical name.
attribute_index: i8Attribute index.
Trait Implementations§
Source§impl Clone for ProtectionObject
impl Clone for ProtectionObject
Source§fn clone(&self) -> ProtectionObject
fn clone(&self) -> ProtectionObject
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 ProtectionObject
impl Debug for ProtectionObject
Source§impl<'de> Deserialize<'de> for ProtectionObject
impl<'de> Deserialize<'de> for ProtectionObject
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 ProtectionObject
Source§impl From<ProtectionObject> for CosemDataType
impl From<ProtectionObject> for CosemDataType
Source§fn from(po: ProtectionObject) -> Self
fn from(po: ProtectionObject) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProtectionObject
impl PartialEq for ProtectionObject
Source§impl Serialize for ProtectionObject
impl Serialize for ProtectionObject
impl StructuralPartialEq for ProtectionObject
Source§impl TryFrom<&CosemDataType> for ProtectionObject
impl TryFrom<&CosemDataType> for ProtectionObject
Auto Trait Implementations§
impl Freeze for ProtectionObject
impl RefUnwindSafe for ProtectionObject
impl Send for ProtectionObject
impl Sync for ProtectionObject
impl Unpin for ProtectionObject
impl UnsafeUnpin for ProtectionObject
impl UnwindSafe for ProtectionObject
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