pub struct DataProtectionAttrs {
pub logical_name: LogicalName,
pub protection_method: u8,
pub protection_key: Vec<u8>,
pub key_translation_table_1: Vec<Choice>,
pub key_translation_table_2: Vec<Choice>,
pub key_translation_table_3: Vec<Choice>,
}Expand description
Data protection class (class_id = 30) attributes.
- attr 1: logical_name (octet-string)
- attr 2: protection_method (enum)
- attr 3: protection_key (octet-string)
- attr 4: key_translation_table_1 (array)
- attr 5: key_translation_table_2 (array)
- attr 6: key_translation_table_3 (array)
Fields§
§logical_name: LogicalNameOBIS logical name (attribute 1).
protection_method: u8Protection method (attribute 2).
protection_key: Vec<u8>Protection key (attribute 3).
key_translation_table_1: Vec<Choice>Key translation table 1 (attribute 4).
key_translation_table_2: Vec<Choice>Key translation table 2 (attribute 5).
key_translation_table_3: Vec<Choice>Key translation table 3 (attribute 6).
Trait Implementations§
Source§impl Clone for DataProtectionAttrs
impl Clone for DataProtectionAttrs
Source§fn clone(&self) -> DataProtectionAttrs
fn clone(&self) -> DataProtectionAttrs
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 DataProtectionAttrs
impl Debug for DataProtectionAttrs
Source§impl<'de> Deserialize<'de> for DataProtectionAttrs
impl<'de> Deserialize<'de> for DataProtectionAttrs
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
Auto Trait Implementations§
impl Freeze for DataProtectionAttrs
impl RefUnwindSafe for DataProtectionAttrs
impl Send for DataProtectionAttrs
impl Sync for DataProtectionAttrs
impl Unpin for DataProtectionAttrs
impl UnsafeUnpin for DataProtectionAttrs
impl UnwindSafe for DataProtectionAttrs
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