pub struct SocialPeer {
pub did: String,
pub display_name: String,
pub wireguard_pubkey_hex: String,
pub overlay_addr: String,
pub endpoint: Option<String>,
pub relation_type: String,
pub added_at: u64,
pub active: bool,
pub envelope_pubkey_hex: Option<String>,
}Expand description
An accepted peer on the SocialWebNet mesh.
This is the material needed to reach and recognise a connection after the handshake has completed — the counterpart’s stable identifier, a friendly label, and the WireGuard/overlay coordinates that route packets to them.
Fields§
§did: StringThe peer’s DID — the stable identifier that keys this record.
display_name: StringHuman-friendly label for the peer (from their profile / the invite).
wireguard_pubkey_hex: StringThe peer’s WireGuard public key, hex-encoded.
overlay_addr: StringThe peer’s address on the SocialWebNet overlay.
endpoint: Option<String>Optional last-known transport endpoint (host:port) for the tunnel.
relation_type: StringThe relationship this peering was established under (free-form; aligns
with spc:relationType in the directory ontology).
added_at: u64Unix seconds at which this peer was added.
active: boolWhether the peering is currently active (a soft on/off that leaves the record in place).
envelope_pubkey_hex: Option<String>The peer’s envelope (X25519) public key, hex — the key to seal payloads to this peer (distinct
from the WireGuard key, which routes packets). Lets the accountability fabric resolve a
worker/trustee’s key from their peer record instead of pasting it. None until the peer publishes it.
Trait Implementations§
Source§impl Clone for SocialPeer
impl Clone for SocialPeer
Source§fn clone(&self) -> SocialPeer
fn clone(&self) -> SocialPeer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SocialPeer
impl Debug for SocialPeer
Source§impl<'de> Deserialize<'de> for SocialPeer
impl<'de> Deserialize<'de> for SocialPeer
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>,
Source§impl PartialEq for SocialPeer
impl PartialEq for SocialPeer
Source§fn eq(&self, other: &SocialPeer) -> bool
fn eq(&self, other: &SocialPeer) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SocialPeer
impl Serialize for SocialPeer
impl StructuralPartialEq for SocialPeer
Auto Trait Implementations§
impl Freeze for SocialPeer
impl RefUnwindSafe for SocialPeer
impl Send for SocialPeer
impl Sync for SocialPeer
impl Unpin for SocialPeer
impl UnsafeUnpin for SocialPeer
impl UnwindSafe for SocialPeer
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more