pub struct EdgeIdentityConfig {
pub name: String,
pub mode: EdgeIdentityMode,
pub guid_prefix: Option<[u8; 12]>,
pub lifetime_seconds: Option<u32>,
}Expand description
Edge-Identity-Konfiguration aus <zerodds:edge_identities>.
Pro Edge ein Eintrag mit Name, Mode, optional fixer GuidPrefix (12 byte; Static-Default), und Lifetime fuer Ephemeral-Rotation.
Fields§
§name: StringLogischer Edge-Name (z.B. "lidar-A", "turm-imu").
mode: EdgeIdentityModeStatic oder Ephemeral.
guid_prefix: Option<[u8; 12]>12-byte GuidPrefix; Pflicht fuer Static, optional fuer
Ephemeral (initialer Wert).
lifetime_seconds: Option<u32>Lifetime in Sekunden — nur Ephemeral. None = Default 300s.
Implementations§
Source§impl EdgeIdentityConfig
impl EdgeIdentityConfig
Sourcepub fn effective_lifetime(&self) -> u32
pub fn effective_lifetime(&self) -> u32
Effektive Lifetime in Sekunden — mit Default-Fallback.
Sourcepub fn is_ephemeral(&self) -> bool
pub fn is_ephemeral(&self) -> bool
True wenn der Mode Ephemeral ist.
Trait Implementations§
Source§impl Clone for EdgeIdentityConfig
impl Clone for EdgeIdentityConfig
Source§fn clone(&self) -> EdgeIdentityConfig
fn clone(&self) -> EdgeIdentityConfig
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 EdgeIdentityConfig
impl Debug for EdgeIdentityConfig
Source§impl PartialEq for EdgeIdentityConfig
impl PartialEq for EdgeIdentityConfig
Source§fn eq(&self, other: &EdgeIdentityConfig) -> bool
fn eq(&self, other: &EdgeIdentityConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EdgeIdentityConfig
impl StructuralPartialEq for EdgeIdentityConfig
Auto Trait Implementations§
impl Freeze for EdgeIdentityConfig
impl RefUnwindSafe for EdgeIdentityConfig
impl Send for EdgeIdentityConfig
impl Sync for EdgeIdentityConfig
impl Unpin for EdgeIdentityConfig
impl UnsafeUnpin for EdgeIdentityConfig
impl UnwindSafe for EdgeIdentityConfig
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