pub struct NodeIdentity {
pub app_id: String,
pub device_id: String,
pub device_name: String,
pub tailscale_hostname: String,
pub tailscale_id: String,
pub dns_name: Option<String>,
pub ip: Option<IpAddr>,
}Expand description
Identity of the local node on the network.
Carries the RFC 017 identity triple: app_id (namespace), device_id
(stable per-device ULID), and device_name (human-readable). The
Tailscale hostname and stable ID are kept alongside as escape hatches
and for internal filtering.
Fields§
§app_id: StringApplication namespace identifier (RFC 017 §5.1).
device_id: StringStable per-device ULID (RFC 017 §5.4).
device_name: StringHuman-readable device name, original (unsanitised) string.
tailscale_hostname: StringTailscale hostname — truffle-{app_id}-{slug(device_name)}.
tailscale_id: StringTailscale stable node ID (populated after the sidecar reaches Running).
dns_name: Option<String>DNS name on the tailnet.
ip: Option<IpAddr>Tailscale IP address.
Trait Implementations§
Source§impl Clone for NodeIdentity
impl Clone for NodeIdentity
Source§fn clone(&self) -> NodeIdentity
fn clone(&self) -> NodeIdentity
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 Debug for NodeIdentity
impl Debug for NodeIdentity
Source§impl Default for NodeIdentity
impl Default for NodeIdentity
Source§fn default() -> NodeIdentity
fn default() -> NodeIdentity
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NodeIdentity
impl RefUnwindSafe for NodeIdentity
impl Send for NodeIdentity
impl Sync for NodeIdentity
impl Unpin for NodeIdentity
impl UnsafeUnpin for NodeIdentity
impl UnwindSafe for NodeIdentity
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