pub struct DataProtectionConfig {
pub logical_name: ObisCode,
pub protection_buffer: Vec<u8>,
pub protection_object_list: Vec<ProtectionObject>,
pub protection_parameters_get: Vec<Vec<u8>>,
pub protection_parameters_set: Vec<Vec<u8>>,
pub required_protection: u8,
}Expand description
Configuration structure used to build a DataProtection object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
protection_buffer: Vec<u8>Attribute 2: protected data buffer (octet-string).
protection_object_list: Vec<ProtectionObject>Attribute 3: array of protection object list entries.
protection_parameters_get: Vec<Vec<u8>>Attribute 4: array of GET protection parameters.
protection_parameters_set: Vec<Vec<u8>>Attribute 5: array of SET protection parameters.
required_protection: u8Attribute 6: the protection required for the operations (enum).
Trait Implementations§
Source§impl Clone for DataProtectionConfig
impl Clone for DataProtectionConfig
Source§impl Debug for DataProtectionConfig
impl Debug for DataProtectionConfig
Source§impl<'de> Deserialize<'de> for DataProtectionConfig
impl<'de> Deserialize<'de> for DataProtectionConfig
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 DataProtectionConfig
impl RefUnwindSafe for DataProtectionConfig
impl Send for DataProtectionConfig
impl Sync for DataProtectionConfig
impl Unpin for DataProtectionConfig
impl UnsafeUnpin for DataProtectionConfig
impl UnwindSafe for DataProtectionConfig
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