pub struct TailscalePeerIdentity {
pub dns_name: Option<String>,
pub login_name: Option<String>,
pub display_name: Option<String>,
pub profile_pic_url: Option<String>,
pub node_id: Option<String>,
}Expand description
A remote peer’s Tailscale-authenticated identity, parsed from the WhoIs
JSON the sidecar attaches to inbound bridge connections (the
remote_identity field of
IncomingConnection).
Produced by Layer 3 — the Go sidecar’s resolvePeerIdentity writes this
JSON into the bridge header — and consumed by Layer 4+ transports and the
bindings. Every field is optional: the sidecar omits empty ones, WhoIs may
return no Node, and legacy sidecars send a bare DNS name that does not
parse as this struct at all.
Fields§
§dns_name: Option<String>Tailnet DNS name (e.g., “kitchen.tailnet.ts.net”), trailing dot stripped.
login_name: Option<String>Tailscale login (owner) name, e.g., “alice@example.com”.
display_name: Option<String>Human-readable display name from the identity provider.
profile_pic_url: Option<String>URL of the peer owner’s profile picture.
node_id: Option<String>Stable Tailscale node ID (WhoIs Node.StableID).
Trait Implementations§
Source§impl Clone for TailscalePeerIdentity
impl Clone for TailscalePeerIdentity
Source§fn clone(&self) -> TailscalePeerIdentity
fn clone(&self) -> TailscalePeerIdentity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more