Struct netplan_types::WireGuardPeerKey
source · [−]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
sourceimpl Clone for WireGuardPeerKey
impl Clone for WireGuardPeerKey
sourcefn clone(&self) -> WireGuardPeerKey
fn clone(&self) -> WireGuardPeerKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for WireGuardPeerKey
impl Debug for WireGuardPeerKey
sourceimpl Default for WireGuardPeerKey
impl Default for WireGuardPeerKey
sourcefn default() -> WireGuardPeerKey
fn default() -> WireGuardPeerKey
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for WireGuardPeerKey
impl<'de> Deserialize<'de> for WireGuardPeerKey
sourcefn 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
sourceimpl PartialEq<WireGuardPeerKey> for WireGuardPeerKey
impl PartialEq<WireGuardPeerKey> for WireGuardPeerKey
sourcefn eq(&self, other: &WireGuardPeerKey) -> bool
fn eq(&self, other: &WireGuardPeerKey) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &WireGuardPeerKey) -> bool
fn ne(&self, other: &WireGuardPeerKey) -> bool
This method tests for !=.
sourceimpl Serialize for WireGuardPeerKey
impl Serialize for WireGuardPeerKey
impl Eq for WireGuardPeerKey
impl StructuralEq for WireGuardPeerKey
impl StructuralPartialEq for WireGuardPeerKey
Auto Trait Implementations
impl RefUnwindSafe for WireGuardPeerKey
impl Send for WireGuardPeerKey
impl Sync for WireGuardPeerKey
impl Unpin for WireGuardPeerKey
impl UnwindSafe for WireGuardPeerKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more