pub struct GossipPeerSummary {
pub node_id: u64,
pub wg_pubkey: Option<String>,
pub wg_endpoint: Option<String>,
pub overlay_ip: Option<String>,
pub labels: HashMap<String, String>,
}Expand description
Snapshot of one gossip-pool peer, returned by
GET /api/v1/cluster/gossip/peers.
Fields§
§node_id: u64Worker (or peer) node id.
wg_pubkey: Option<String>WireGuard public key (base64-url-no-pad), if known.
wg_endpoint: Option<String>WireGuard UDP endpoint (host:port), if known.
overlay_ip: Option<String>Overlay IP assigned to this peer, if known.
labels: HashMap<String, String>Free-form labels advertised by the peer.
Trait Implementations§
Source§impl Clone for GossipPeerSummary
impl Clone for GossipPeerSummary
Source§fn clone(&self) -> GossipPeerSummary
fn clone(&self) -> GossipPeerSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for GossipPeerSummary
impl ComposeSchema for GossipPeerSummary
Source§impl Debug for GossipPeerSummary
impl Debug for GossipPeerSummary
Source§impl<'de> Deserialize<'de> for GossipPeerSummary
impl<'de> Deserialize<'de> for GossipPeerSummary
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 Serialize for GossipPeerSummary
impl Serialize for GossipPeerSummary
Auto Trait Implementations§
impl Freeze for GossipPeerSummary
impl RefUnwindSafe for GossipPeerSummary
impl Send for GossipPeerSummary
impl Sync for GossipPeerSummary
impl Unpin for GossipPeerSummary
impl UnsafeUnpin for GossipPeerSummary
impl UnwindSafe for GossipPeerSummary
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