pub struct SecuritySetupConfig {
pub logical_name: ObisCode,
pub version: u8,
pub security_policy: u8,
pub security_suite: u8,
pub client_system_title: Vec<u8>,
pub server_system_title: Vec<u8>,
pub certificates: Vec<Certificate>,
}Expand description
Configuration structure used to build a SecuritySetup object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
version: u8Class version: 0 or 1. Version 1 adds the certificates attribute and the
PKI/ECDH methods.
security_policy: u8Attribute 2: security policy (enum). See IEC 62056-6-2 §4.4.7.2.2.
security_suite: u8Attribute 3: security suite (enum). 0 = AES-GCM-128 with AES-128 key wrap.
client_system_title: Vec<u8>Attribute 4: client system title (octet-string).
server_system_title: Vec<u8>Attribute 5: server system title (octet-string).
certificates: Vec<Certificate>Attribute 6: certificates (array). Empty for security suite 0.
Trait Implementations§
Source§impl Clone for SecuritySetupConfig
impl Clone for SecuritySetupConfig
Source§fn clone(&self) -> SecuritySetupConfig
fn clone(&self) -> SecuritySetupConfig
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 SecuritySetupConfig
impl Debug for SecuritySetupConfig
Source§impl<'de> Deserialize<'de> for SecuritySetupConfig
impl<'de> Deserialize<'de> for SecuritySetupConfig
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 SecuritySetupConfig
impl RefUnwindSafe for SecuritySetupConfig
impl Send for SecuritySetupConfig
impl Sync for SecuritySetupConfig
impl Unpin for SecuritySetupConfig
impl UnsafeUnpin for SecuritySetupConfig
impl UnwindSafe for SecuritySetupConfig
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