pub struct PeerSpec {
pub public_key: String,
pub endpoint: String,
pub allowed_ips: String,
pub persistent_keepalive_secs: u64,
}Expand description
A WireGuard peer to add to the base overlay. Mirrors
zlayer_overlay::PeerInfo but with wire-safe field types.
Fields§
§public_key: Stringbase64 WireGuard public key.
endpoint: Stringhost:port (textual so an unresolved/hostname endpoint survives).
allowed_ips: StringComma-separated CIDR list (e.g. "10.200.0.5/32,10.200.1.0/24").
persistent_keepalive_secs: u64Persistent-keepalive interval, in seconds (0 = disabled).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PeerSpec
impl<'de> Deserialize<'de> for PeerSpec
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
impl Eq for PeerSpec
impl StructuralPartialEq for PeerSpec
Auto Trait Implementations§
impl Freeze for PeerSpec
impl RefUnwindSafe for PeerSpec
impl Send for PeerSpec
impl Sync for PeerSpec
impl Unpin for PeerSpec
impl UnsafeUnpin for PeerSpec
impl UnwindSafe for PeerSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.