pub struct NodeRecord {Show 16 fields
pub node_id: NodeId,
pub runtime: String,
pub public_key: String,
pub display_name: String,
pub instance_id: InstanceId,
pub trust: TrustState,
pub presence: Presence,
pub endpoints: Vec<String>,
pub capabilities: Vec<String>,
pub repositories: Vec<String>,
pub protocol_version: u32,
pub version: String,
pub sources: Vec<Sighting>,
pub first_seen: String,
pub last_seen: String,
pub restarts: u64,
}Expand description
One discovered node: the canonical record every surface projects.
Fields§
§node_id: NodeIdThe node id: the digest of the key below.
runtime: StringThe runtime slot: which server of the node (one per checkout), 16 hex; empty for a version-1 advertisement. A record is one runtime: two worktrees of one machine are two records under one node id and one key.
public_key: StringThe Ed25519 public key that proved this record’s advertisements.
display_name: StringThe node’s own display name. Presentation only.
instance_id: InstanceIdThe node’s current run.
trust: TrustStateWhat the policy decided.
presence: PresenceWhether the node is answering now.
endpoints: Vec<String>Advertised host:port authorities.
capabilities: Vec<String>Advertised transports (http, mcp, ws).
repositories: Vec<String>Advertised repository digests.
protocol_version: u32The advertised protocol version.
version: StringThe advertised executable version.
sources: Vec<Sighting>Every source this node was seen through, most recent sighting per source.
first_seen: StringFirst seen, RFC 3339.
last_seen: StringLast seen, RFC 3339.
restarts: u64How many instances this node id has shown (a restart increments it).
Trait Implementations§
Source§impl Clone for NodeRecord
impl Clone for NodeRecord
Source§fn clone(&self) -> NodeRecord
fn clone(&self) -> NodeRecord
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 NodeRecord
impl Debug for NodeRecord
Source§impl<'de> Deserialize<'de> for NodeRecord
impl<'de> Deserialize<'de> for NodeRecord
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 JsonSchema for NodeRecord
impl JsonSchema for NodeRecord
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more