pub struct Pubkey(/* private fields */);
Expand description
WireGuard public key.
Implementations§
Source§impl Pubkey
impl Pubkey
Sourcepub fn from_base64(data: &str) -> Result<Self, ParseError>
pub fn from_base64(data: &str) -> Result<Self, ParseError>
Parse key from base64.
Sourcepub fn from_base64_urlsafe(data: &str) -> Result<Self, ParseError>
pub fn from_base64_urlsafe(data: &str) -> Result<Self, ParseError>
Parse key from base64 with urlsafe encoding.
Sourcepub fn to_base64_urlsafe(&self) -> String
pub fn to_base64_urlsafe(&self) -> String
Encode key as base64 with urlsafe encoding.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pubkey
impl<'de> Deserialize<'de> for Pubkey
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 Ord for Pubkey
impl Ord for Pubkey
Source§impl PartialOrd for Pubkey
impl PartialOrd for Pubkey
impl Copy for Pubkey
impl Eq for Pubkey
impl StructuralPartialEq for Pubkey
Auto Trait Implementations§
impl Freeze for Pubkey
impl RefUnwindSafe for Pubkey
impl Send for Pubkey
impl Sync for Pubkey
impl Unpin for Pubkey
impl UnwindSafe for Pubkey
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