pub struct PublicIdentity {
pub encryption_key: [u8; 32],
pub verify_key: VerifyKey,
}Expand description
Public identity that can be shared with peers
Fields§
§encryption_key: [u8; 32]Public key for encryption (X25519)
verify_key: VerifyKeyPublic key for signature verification (Ed25519)
Implementations§
Trait Implementations§
Source§impl Clone for PublicIdentity
impl Clone for PublicIdentity
Source§fn clone(&self) -> PublicIdentity
fn clone(&self) -> PublicIdentity
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 PublicIdentity
impl Debug for PublicIdentity
Source§impl<'de> Deserialize<'de> for PublicIdentity
impl<'de> Deserialize<'de> for PublicIdentity
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
Auto Trait Implementations§
impl Freeze for PublicIdentity
impl RefUnwindSafe for PublicIdentity
impl Send for PublicIdentity
impl Sync for PublicIdentity
impl Unpin for PublicIdentity
impl UnsafeUnpin for PublicIdentity
impl UnwindSafe for PublicIdentity
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