pub struct AccessPolicy {
pub meter_id: Vec<u8>,
pub policy_id: u8,
pub suite_id: u8,
pub security_list: Vec<SecurityItem>,
}Expand description
The access policy for a single meter (meters_passwords).
Fields§
§meter_id: Vec<u8>Meter identifier the policy applies to.
policy_id: u8Security policy id (police_id).
suite_id: u8Cryptographic suite id (suit_id).
security_list: Vec<SecurityItem>Keys and passwords for this meter.
Implementations§
Source§impl AccessPolicy
impl AccessPolicy
Sourcefn to_structure(&self) -> CosemDataType
fn to_structure(&self) -> CosemDataType
The COSEM meters_passwords structure for this policy.
Trait Implementations§
Source§impl Clone for AccessPolicy
impl Clone for AccessPolicy
Source§fn clone(&self) -> AccessPolicy
fn clone(&self) -> AccessPolicy
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 AccessPolicy
impl Debug for AccessPolicy
Source§impl Default for AccessPolicy
impl Default for AccessPolicy
Source§fn default() -> AccessPolicy
fn default() -> AccessPolicy
Returns the “default value” for a type. Read more
impl Eq for AccessPolicy
Source§impl PartialEq for AccessPolicy
impl PartialEq for AccessPolicy
impl StructuralPartialEq for AccessPolicy
Auto Trait Implementations§
impl Freeze for AccessPolicy
impl RefUnwindSafe for AccessPolicy
impl Send for AccessPolicy
impl Sync for AccessPolicy
impl Unpin for AccessPolicy
impl UnsafeUnpin for AccessPolicy
impl UnwindSafe for AccessPolicy
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