pub struct WireGuardPeerKey {
pub public: Option<String>,
pub shared: Option<String>,
}Expand description
Define keys to use for the WireGuard peers.
This field can be used as a mapping, where you can further specify the public and shared keys.
Fields§
§public: Option<String>A base64-encoded public key, required for WireGuard peers.
A base64-encoded preshared key. Optional for WireGuard peers. When the systemd-networkd backend (v242+) is used, this can also be an absolute path to a file containing the preshared key.
Trait Implementations§
Source§impl Clone for WireGuardPeerKey
impl Clone for WireGuardPeerKey
Source§fn clone(&self) -> WireGuardPeerKey
fn clone(&self) -> WireGuardPeerKey
Returns a duplicate of the value. Read more
1.0.0 · 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 WireGuardPeerKey
impl Debug for WireGuardPeerKey
Source§impl Default for WireGuardPeerKey
impl Default for WireGuardPeerKey
Source§fn default() -> WireGuardPeerKey
fn default() -> WireGuardPeerKey
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WireGuardPeerKey
impl<'de> Deserialize<'de> for WireGuardPeerKey
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
Source§impl PartialEq for WireGuardPeerKey
impl PartialEq for WireGuardPeerKey
Source§impl Serialize for WireGuardPeerKey
impl Serialize for WireGuardPeerKey
impl Eq for WireGuardPeerKey
impl StructuralPartialEq for WireGuardPeerKey
Auto Trait Implementations§
impl Freeze for WireGuardPeerKey
impl RefUnwindSafe for WireGuardPeerKey
impl Send for WireGuardPeerKey
impl Sync for WireGuardPeerKey
impl Unpin for WireGuardPeerKey
impl UnwindSafe for WireGuardPeerKey
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